~ubuntu-branches/ubuntu/trusty/blender/trusty

« back to all changes in this revision

Viewing changes to source/blender/imbuf/intern/util.c

  • Committer: Package Import Robot
  • Author(s): Matteo F. Vescovi
  • Date: 2012-05-12 20:02:22 UTC
  • mfrom: (14.2.16 sid)
  • Revision ID: package-import@ubuntu.com-20120512200222-lznjs2cxzaq96wua
Tags: 2.63a-1
* New upstream bugfix release
  + debian/patches/: re-worked since source code changed

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
#endif
41
41
 
42
42
#include "BLI_blenlib.h"
 
43
#include "BLI_fileops.h"
43
44
 
44
45
#include "DNA_userdef_types.h"
45
46
#include "BKE_global.h"
339
340
        /* stat test below fails on large files > 4GB */
340
341
        if (isffmpeg(name)) return (ANIM_FFMPEG);
341
342
#       endif
342
 
        if (stat(name,&st) == -1) return(0);
 
343
        if (BLI_stat(name, &st) == -1) return(0);
343
344
        if (((st.st_mode) & S_IFMT) != S_IFREG) return(0);
344
345
 
345
346
        if (isavi(name)) return (ANIM_AVI);
346
347
 
347
348
        if (ismovie(name)) return (ANIM_MOVIE);
348
349
#else
349
 
        if (stat(name,&st) == -1) return(0);
 
350
        if (BLI_stat(name, &st) == -1) return(0);
350
351
        if (((st.st_mode) & S_IFMT) != S_IFREG) return(0);
351
352
 
352
353
        if (ismovie(name)) return (ANIM_MOVIE);
356
357
#       ifdef WITH_FFMPEG
357
358
        if (isffmpeg(name)) return (ANIM_FFMPEG);
358
359
#       endif
 
360
 
 
361
 
359
362
        if (isavi(name)) return (ANIM_AVI);
360
363
#endif
361
364
#ifdef WITH_REDCODE