[FFmpeg-cvslog] avfilter/f_sidedata: fix Wtautological-constant-out-of-range-compare

Zhao Zhili git at videolan.org
Wed Oct 30 19:14:55 EET 2019


ffmpeg | branch: master | Zhao Zhili <quinkblack at foxmail.com> | Wed Oct 16 01:17:54 2019 +0800| [af70c94c63cc0ccf6a8078e87c81d061b8765889] | committer: Michael Niedermayer

avfilter/f_sidedata: fix Wtautological-constant-out-of-range-compare

Reviewed-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

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

diff --git a/libavfilter/f_sidedata.c b/libavfilter/f_sidedata.c
index 381da5a052..4210dcac4c 100644
--- a/libavfilter/f_sidedata.c
+++ b/libavfilter/f_sidedata.c
@@ -39,7 +39,7 @@ typedef struct SideDataContext {
     const AVClass *class;
 
     int mode;
-    enum AVFrameSideDataType type;
+    int type;   // enum AVFrameSideDataType or -1 for delete side data mode
 } SideDataContext;
 
 #define OFFSET(x) offsetof(SideDataContext, x)



More information about the ffmpeg-cvslog mailing list