Browse Source

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 <kostya.shishkov@gmail.com>
tags/n2.3
Dirk Ausserhaus Kostya Shishkov 11 years ago
parent
commit
b2290bf10b
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      libavcodec/intelh263dec.c

+ 4
- 0
libavcodec/intelh263dec.c View File

@@ -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");


Loading…
Cancel
Save