[FFmpeg-cvslog] r23017 - trunk/libavformat/avidec.c

cehoyos subversion
Tue May 4 19:17:16 CEST 2010


Author: cehoyos
Date: Tue May  4 19:17:16 2010
New Revision: 23017

Log:
Do not use pkt->size when it is potentially uninitialized.

Patch by Thierry Foucu, tfoucu gmail

Modified:
   trunk/libavformat/avidec.c

Modified: trunk/libavformat/avidec.c
==============================================================================
--- trunk/libavformat/avidec.c	Tue May  4 00:08:31 2010	(r23016)
+++ trunk/libavformat/avidec.c	Tue May  4 19:17:16 2010	(r23017)
@@ -887,7 +887,7 @@ resync:
             if(   (st->discard >= AVDISCARD_DEFAULT && size==0)
                /*|| (st->discard >= AVDISCARD_NONKEY && !(pkt->flags & AV_PKT_FLAG_KEY))*/ //FIXME needs a little reordering
                || st->discard >= AVDISCARD_ALL){
-                if(ast->sample_size) ast->frame_offset += pkt->size;
+                if(ast->sample_size) ast->frame_offset += size;
                 else                 ast->frame_offset++;
                 url_fskip(pb, size);
                 goto resync;



More information about the ffmpeg-cvslog mailing list