diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-01-06 17:30:05 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-01-07 00:08:36 +0100 |
commit | 4925b6e784cad1b00561f786b92a8d5eb6c28666 (patch) | |
tree | 684141f62b0f246718247ce52bcc89091b418faa /libavformat | |
parent | 4dfb74cd4f22a2cc621e87e4a9447cfe2edcb871 (diff) | |
download | ffmpeg-4925b6e784cad1b00561f786b92a8d5eb6c28666.tar.gz |
tta: fix off be 1 error in the end detection.
Fixes use of uninitialized values.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/tta.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/tta.c b/libavformat/tta.c index af9476ecc0..01cceeb86f 100644 --- a/libavformat/tta.c +++ b/libavformat/tta.c @@ -125,7 +125,7 @@ static int tta_read_packet(AVFormatContext *s, AVPacket *pkt) int size, ret; // FIXME! - if (c->currentframe > c->totalframes) + if (c->currentframe >= c->totalframes) return -1; size = st->index_entries[c->currentframe].size; |