avcodec/h263dec: Fix decoding messenger.h263
Fixes http://samples.mplayerhq.hu/V-codecs/h263/h263-raw/messenger.h263 Fixes regression sinceb239f3f6
Found-by: Josh Allmann Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commitd225b0f7aa
) Conflicts: libavcodec/h263dec.c Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -319,6 +319,14 @@ static int decode_slice(MpegEncContext *s)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (s->codec_id == AV_CODEC_ID_H263 &&
|
||||||
|
(s->workaround_bugs & FF_BUG_AUTODETECT) &&
|
||||||
|
get_bits_left(&s->gb) >= 64 &&
|
||||||
|
AV_RB64(s->gb.buffer_end - 8) == 0xCDCDCDCDFC7F0000) {
|
||||||
|
|
||||||
|
s->padding_bug_score += 32;
|
||||||
|
}
|
||||||
|
|
||||||
if (s->workaround_bugs & FF_BUG_AUTODETECT) {
|
if (s->workaround_bugs & FF_BUG_AUTODETECT) {
|
||||||
if (s->padding_bug_score > -2 && !s->data_partitioning)
|
if (s->padding_bug_score > -2 && !s->data_partitioning)
|
||||||
s->workaround_bugs |= FF_BUG_NO_PADDING;
|
s->workaround_bugs |= FF_BUG_NO_PADDING;
|
||||||
|
Reference in New Issue
Block a user