Commit b898c49b authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/vf_uspp: assert that the qp_type is valid

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 10ef8f06
......@@ -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;
}
......
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