[FFmpeg-devel] [PATCH 1/4] avfilter/tinterlace: Change enum to int, which is accessed via AVOption as int

Michael Niedermayer michaelni at gmx.at
Sat Mar 28 22:28:54 CET 2015


This fixes depending on implementation defined behavior

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
---
 libavfilter/tinterlace.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/tinterlace.h b/libavfilter/tinterlace.h
index fa0a83a..d80a6e2 100644
--- a/libavfilter/tinterlace.h
+++ b/libavfilter/tinterlace.h
@@ -43,7 +43,7 @@ enum TInterlaceMode {
 
 typedef struct {
     const AVClass *class;
-    enum TInterlaceMode mode;   ///< interlace mode selected
+    int mode;                   ///< TInterlaceMode, interlace mode selected
     AVRational preout_time_base;
     int flags;                  ///< flags affecting interlacing algorithm
     int frame;                  ///< number of the output frame
-- 
1.7.9.5



More information about the ffmpeg-devel mailing list