avfilter/vf_fieldhint: Assert that mode is valid
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 29 May 2016 12:45:18 +0000 (14:45 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 29 May 2016 12:49:27 +0000 (14:49 +0200)
Its checked by the AVOption code
Fixes CID1355122
Fixes CID1355121

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavfilter/vf_fieldhint.c

index bdba77f..739c1bf 100644 (file)
@@ -18,6 +18,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+#include "libavutil/avassert.h"
 #include "libavutil/imgutils.h"
 #include "libavutil/internal.h"
 #include "libavutil/opt.h"
@@ -180,6 +181,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
         top    = s->frame[1 + tf];
         bottom = s->frame[1 + bf];
         break;
+    default:
+        av_assert0(0);
     }
 
     switch (hint) {