# HG changeset patch # User cehoyos # Date 1272993436 0 # Node ID d52b769af70056cf778e043fa194409dd1708913 # Parent 3de601aa9786e8e7094e7067bcd1dcf1d08e65fb Do not use pkt->size when it is potentially uninitialized. Patch by Thierry Foucu, tfoucu gmail diff -r 3de601aa9786 -r d52b769af700 avidec.c --- a/avidec.c Sat May 01 15:36:51 2010 +0000 +++ b/avidec.c Tue May 04 17:17:16 2010 +0000 @@ -887,7 +887,7 @@ 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;