mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
mpeg12: print error for invalid skip cases
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
9e28e0035a
commit
343900a147
@ -770,8 +770,10 @@ static int mpeg_decode_mb(MpegEncContext *s, DCTELEM block[12][64])
|
||||
mb_type = s->current_picture.f.mb_type[s->mb_x + s->mb_y * s->mb_stride - 1];
|
||||
else
|
||||
mb_type = s->current_picture.f.mb_type[s->mb_width + (s->mb_y - 1) * s->mb_stride - 1]; // FIXME not sure if this is allowed in MPEG at all
|
||||
if (IS_INTRA(mb_type))
|
||||
if (IS_INTRA(mb_type)) {
|
||||
av_log(s->avctx, AV_LOG_ERROR, "skip with previntra\n");
|
||||
return -1;
|
||||
}
|
||||
s->current_picture.f.mb_type[s->mb_x + s->mb_y*s->mb_stride] =
|
||||
mb_type | MB_TYPE_SKIP;
|
||||
// av_assert2(s->current_picture.f.mb_type[s->mb_x + s->mb_y * s->mb_stride - 1] & (MB_TYPE_16x16 | MB_TYPE_16x8));
|
||||
|
Loading…
Reference in New Issue
Block a user