From b2290bf10b12b7772f55fcab014a47e18e9fdef2 Mon Sep 17 00:00:00 2001 From: Dirk Ausserhaus Date: Wed, 18 Jun 2014 10:01:52 +0200 Subject: [PATCH] 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: Kostya Shishkov --- libavcodec/intelh263dec.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavcodec/intelh263dec.c b/libavcodec/intelh263dec.c index 8a0a381fb7..e34da5c6f5 100644 --- a/libavcodec/intelh263dec.c +++ b/libavcodec/intelh263dec.c @@ -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");