Commit a255e6e7 authored by cehoyos's avatar cehoyos

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

Patch by Thierry Foucu, tfoucu gmail 


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@23017 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 3b8fb28e
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment