Browse Source

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>
tags/n3.1
Michael Niedermayer 9 years ago
parent
commit
7ae4d574e8
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavfilter/vf_fieldhint.c

+ 3
- 0
libavfilter/vf_fieldhint.c View 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) {


Loading…
Cancel
Save