Mercurial > libavformat.hg
changeset 5990:d52b769af700 libavformat
Do not use pkt->size when it is potentially uninitialized.
Patch by Thierry Foucu, tfoucu gmail
author | cehoyos |
---|---|
date | Tue, 04 May 2010 17:17:16 +0000 |
parents | 3de601aa9786 |
children | b65ecf9c2a26 |
files | avidec.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;