Commit d788af6c authored by Laurent Aimar's avatar Laurent Aimar Committed by Michael Niedermayer

Reject slices that does not have the same type than the first one in RV10/RV20 decoder.

This prevents crashes with some corrupted bitstreams.
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent eac673d5
......@@ -547,8 +547,12 @@ static int rv10_decode_packet(AVCodecContext *avctx,
if(MPV_frame_start(s, avctx) < 0)
return -1;
ff_er_frame_start(s);
} else {
if (s->current_picture_ptr->f.pict_type != s->pict_type)
return -1;
}
av_dlog(avctx, "qscale=%d\n", s->qscale);
/* default quantization values */
......
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