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

Patch by Thierry Foucu, tfoucu gmail

Originally committed as revision 23017 to svn://svn.ffmpeg.org/ffmpeg/trunk
release/0.6
Thierry Foucu 15 years ago committed by Carl Eugen Hoyos
parent f4ea7c8911
commit e1954bb5ca
  1. 2
      libavformat/avidec.c

@ -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;

Loading…
Cancel
Save