avfilter/f_sidedata: fix Wtautological-constant-out-of-range-compare
authorZhao Zhili <quinkblack@foxmail.com>
Tue, 15 Oct 2019 17:17:54 +0000 (01:17 +0800)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 30 Oct 2019 17:09:00 +0000 (18:09 +0100)
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavfilter/f_sidedata.c

index 381da5a..4210dca 100644 (file)
@@ -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)