[FFmpeg-cvslog] avfilter/vf_fieldhint: Assert that mode is valid

Michael Niedermayer git at videolan.org
Sun May 29 17:51:12 CEST 2016


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Sun May 29 14:45:18 2016 +0200| [7ae4d574e87364620ac1832e538650af0bf6bf11] | committer: Michael Niedermayer

avfilter/vf_fieldhint: Assert that mode is valid

Its checked by the AVOption code
Fixes CID1355122
Fixes CID1355121

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

 libavfilter/vf_fieldhint.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavfilter/vf_fieldhint.c b/libavfilter/vf_fieldhint.c
index bdba77f..739c1bf 100644
--- a/libavfilter/vf_fieldhint.c
+++ b/libavfilter/vf_fieldhint.c
@@ -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) {



More information about the ffmpeg-cvslog mailing list