# HG changeset patch # User gpoirier # Date 1171059929 0 # Node ID b80c704183e9b0c3a8348f851235c71085349934 # Parent 709ddd620e046e49531ecf88e18cec44954225e0 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 diff -r 709ddd620e04 -r b80c704183e9 h264.c --- a/h264.c Fri Feb 09 13:57:14 2007 +0000 +++ b/h264.c Fri Feb 09 22:25:29 2007 +0000 @@ -8314,7 +8314,7 @@ 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; }