Commit b2290bf1 authored by Dirk Ausserhaus's avatar Dirk Ausserhaus Committed by Kostya Shishkov

i263: skip dummy frames

Intel i263 codec has special 8-byte dummy frames that should not be decoded,
so do not even attempt to decode them and skip them instead.
Signed-off-by: 's avatarKostya Shishkov <kostya.shishkov@gmail.com>
parent e74433a8
......@@ -26,6 +26,10 @@ int ff_intel_h263_decode_picture_header(MpegEncContext *s)
{
int format;
if (get_bits_left(&s->gb) == 64) { /* special dummy frames */
return FRAME_SKIPPED;
}
/* picture header */
if (get_bits_long(&s->gb, 22) != 0x20) {
av_log(s->avctx, AV_LOG_ERROR, "Bad picture start code\n");
......
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