[Ffmpeg-cvslog] r7904 - trunk/libavcodec/h264.c

gpoirier subversion
Fri Feb 9 23:25:30 CET 2007


Author: gpoirier
Date: Fri Feb  9 23:25:29 2007
New Revision: 7904

Modified:
   trunk/libavcodec/h264.c

Log:
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


Modified: trunk/libavcodec/h264.c
==============================================================================
--- trunk/libavcodec/h264.c	(original)
+++ trunk/libavcodec/h264.c	Fri Feb  9 23:25:29 2007
@@ -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;
     }




More information about the ffmpeg-cvslog mailing list