aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Foucu <tfoucu@gmail.com>2010-05-04 17:17:16 +0000
committerCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>2010-05-04 17:17:16 +0000
commite1954bb5ca27def0863ee6e4efd63275c8e1e2f4 (patch)
treede4d010562390dea2c71b91edcf9696ad52f6c61
parentf4ea7c89113fb746647a0036f7e90faa3895396d (diff)
downloadffmpeg-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.c2
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;