[FFmpeg-cvslog] avformat/img2: Change enum to int, which is accessed via AVOption as int

Michael Niedermayer git at videolan.org
Mon Mar 30 00:22:46 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Mar 23 19:31:17 2015 +0100| [7c6b0436b645bfe5e57a7c8420ab4c119cbd544e] | committer: 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: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7c6b0436b645bfe5e57a7c8420ab4c119cbd544e
---

 libavformat/img2.h |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/libavformat/img2.h b/libavformat/img2.h
index 67bd7a3..e4bcb26 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;



More information about the ffmpeg-cvslog mailing list