Commit ba9c9f0a authored by gpoirier's avatar gpoirier

always decode extradata when of non-avc stream (like RTSP)

Patch by Francois Oligny-Lemieux % eucloid A gmail P com %
Original thread:
Date: Feb 9, 2007 12:00 AM
Subject: [Ffmpeg-devel] h264.c patch, always decoding extradata when on non avc stream


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7904 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 93d9c2d6
...@@ -8314,7 +8314,7 @@ static int decode_frame(AVCodecContext *avctx, ...@@ -8314,7 +8314,7 @@ static int decode_frame(AVCodecContext *avctx,
h->got_avcC = 1; h->got_avcC = 1;
} }
if(!h->is_avc && s->avctx->extradata_size && s->picture_number==0){ if(avctx->frame_number==0 && !h->is_avc && s->avctx->extradata_size){
if(decode_nal_units(h, s->avctx->extradata, s->avctx->extradata_size) < 0) if(decode_nal_units(h, s->avctx->extradata, s->avctx->extradata_size) < 0)
return -1; return -1;
} }
......
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