rv10: Reject slices that does not have the same type as the first one
This prevents crashes with some corrupted bitstreams. Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
27128d82fa
commit
738c17b3a6
@ -560,8 +560,10 @@ static int rv10_decode_packet(AVCodecContext *avctx,
|
||||
return -1;
|
||||
ff_er_frame_start(s);
|
||||
} else {
|
||||
if (s->current_picture_ptr->f.pict_type != s->pict_type)
|
||||
if (s->current_picture_ptr->pict_type != s->pict_type) {
|
||||
av_log(s->avctx, AV_LOG_ERROR, "Slice type mismatch\n");
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user