avfilter/vf_fieldhint: Assert that mode is valid
Its checked by the AVOption code Fixes CID1355122 Fixes CID1355121 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
52ca24bdd2
commit
7ae4d574e8
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user