Browse Source

h264dec: Decode in stream avc extradata.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.9
Michael Niedermayer 14 years ago
parent
commit
9b73fbcff6
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/h264.c

+ 2
- 0
libavcodec/h264.c View File

@@ -3911,6 +3911,8 @@ static int decode_frame(AVCodecContext *avctx,

return 0;
}
if(h->is_avc && AV_RB32(buf)==0x0164001F && buf[5] && buf[8]==0x67)
return ff_h264_decode_extradata(h, buf, buf_size);

buf_index=decode_nal_units(h, buf, buf_size);
if(buf_index < 0)


Loading…
Cancel
Save