[FFmpeg-cvslog] avfilter/f_perms: Change enums to int, which are accessed via AVOption as int

Michael Niedermayer git at videolan.org
Sat Mar 7 03:10:02 CET 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Mar  7 02:44:04 2015 +0100| [b0662a943c81a68d9d255231f0d58e427b63ba21] | committer: Michael Niedermayer

avfilter/f_perms: Change enums to int, which are 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=b0662a943c81a68d9d255231f0d58e427b63ba21
---

 libavfilter/f_perms.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/f_perms.c b/libavfilter/f_perms.c
index 188ce91..abe2e4f 100644
--- a/libavfilter/f_perms.c
+++ b/libavfilter/f_perms.c
@@ -37,7 +37,7 @@ typedef struct {
     const AVClass *class;
     AVLFG lfg;
     int64_t random_seed;
-    enum mode mode;
+    int mode;
 } PermsContext;
 
 #define OFFSET(x) offsetof(PermsContext, x)



More information about the ffmpeg-cvslog mailing list