mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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 Originally committed as revision 7904 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
2d241e6687
commit
6ff9b4226b
@ -8314,7 +8314,7 @@ static int decode_frame(AVCodecContext *avctx,
|
||||
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)
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user