Commit 7c6b0436 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/img2: Change enum to int, which is accessed via AVOption as int

This fixes depending on implementation defined behavior
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent f45758d3
...@@ -30,6 +30,12 @@ ...@@ -30,6 +30,12 @@
#include <glob.h> #include <glob.h>
#endif #endif
enum PatternType {
PT_GLOB_SEQUENCE,
PT_GLOB,
PT_SEQUENCE
};
typedef struct VideoDemuxData { typedef struct VideoDemuxData {
const AVClass *class; /**< Class for private options. */ const AVClass *class; /**< Class for private options. */
int img_first; int img_first;
...@@ -44,7 +50,7 @@ typedef struct VideoDemuxData { ...@@ -44,7 +50,7 @@ typedef struct VideoDemuxData {
int width, height; /**< Set by a private option. */ int width, height; /**< Set by a private option. */
AVRational framerate; /**< Set by a private option. */ AVRational framerate; /**< Set by a private option. */
int loop; int loop;
enum { PT_GLOB_SEQUENCE, PT_GLOB, PT_SEQUENCE } pattern_type; int pattern_type; /**< PatternType */
int use_glob; int use_glob;
#if HAVE_GLOB #if HAVE_GLOB
glob_t globstate; glob_t globstate;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment