Commit 7ae4d574 authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/vf_fieldhint: Assert that mode is valid

Its checked by the AVOption code
Fixes CID1355122
Fixes CID1355121
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 52ca24bd
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment