diff options
author | Thierry Foucu <tfoucu@gmail.com> | 2010-05-04 17:17:16 +0000 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at> | 2010-05-04 17:17:16 +0000 |
commit | e1954bb5ca27def0863ee6e4efd63275c8e1e2f4 (patch) | |
tree | de4d010562390dea2c71b91edcf9696ad52f6c61 | |
parent | f4ea7c89113fb746647a0036f7e90faa3895396d (diff) | |
download | ffmpeg-e1954bb5ca27def0863ee6e4efd63275c8e1e2f4.tar.gz |
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
-rw-r--r-- | libavformat/avidec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c index 34583c52d2..e866a93480 100644 --- a/libavformat/avidec.c +++ b/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; |