diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2015-03-23 19:31:17 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-03-30 00:08:57 +0200 |
commit | 7c6b0436b645bfe5e57a7c8420ab4c119cbd544e (patch) | |
tree | 926c55d4bb3c8bb0ba7133eddd4a498870356e40 /libavformat/img2.h | |
parent | f45758d3eebecd2c4f5bac456e05f0063e20114d (diff) | |
download | ffmpeg-7c6b0436b645bfe5e57a7c8420ab4c119cbd544e.tar.gz |
avformat/img2: Change enum to int, which is accessed via AVOption as int
This fixes depending on implementation defined behavior
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/img2.h')
-rw-r--r-- | libavformat/img2.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libavformat/img2.h b/libavformat/img2.h index 67bd7a325f..e4bcb26da8 100644 --- a/libavformat/img2.h +++ b/libavformat/img2.h @@ -30,6 +30,12 @@ #include <glob.h> #endif +enum PatternType { + PT_GLOB_SEQUENCE, + PT_GLOB, + PT_SEQUENCE +}; + typedef struct VideoDemuxData { const AVClass *class; /**< Class for private options. */ int img_first; @@ -44,7 +50,7 @@ typedef struct VideoDemuxData { int width, height; /**< Set by a private option. */ AVRational framerate; /**< Set by a private option. */ int loop; - enum { PT_GLOB_SEQUENCE, PT_GLOB, PT_SEQUENCE } pattern_type; + int pattern_type; /**< PatternType */ int use_glob; #if HAVE_GLOB glob_t globstate; |