1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-08-23 09:45:06 +02:00

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
This commit is contained in:
Thierry Foucu 2010-05-04 17:17:16 +00:00 committed by Carl Eugen Hoyos
parent f4ea7c8911
commit e1954bb5ca

View File

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