From b898c49ba1b60e77780f5b28d6200f984c27dc98 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sat, 13 Dec 2014 05:30:39 +0100 Subject: [PATCH] avfilter/vf_uspp: assert that the qp_type is valid Signed-off-by: Michael Niedermayer --- libavfilter/vf_uspp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavfilter/vf_uspp.c b/libavfilter/vf_uspp.c index d0ce63e02f..7526fde806 100644 --- a/libavfilter/vf_uspp.c +++ b/libavfilter/vf_uspp.c @@ -187,6 +187,7 @@ static inline int norm_qscale(int qscale, int type) case FF_QSCALE_TYPE_MPEG2: return qscale >> 1; case FF_QSCALE_TYPE_H264: return qscale >> 2; case FF_QSCALE_TYPE_VP56: return (63 - qscale + 2) >> 2; + default: av_assert0(0); } return qscale; }