[FFmpeg-cvslog] h264dec: Decode in stream avc extradata.

Michael Niedermayer git at videolan.org
Fri Sep 23 06:04:01 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Sep 23 05:43:32 2011 +0200| [9b73fbcff62267a355f752d83e26cd6d971e975e] | committer: Michael Niedermayer

h264dec: Decode in stream avc extradata.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9b73fbcff62267a355f752d83e26cd6d971e975e
---

 libavcodec/h264.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index a2250f4..aeb36f2 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -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)



More information about the ffmpeg-cvslog mailing list