aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-01-06 17:30:05 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-01-07 00:08:36 +0100
commit4925b6e784cad1b00561f786b92a8d5eb6c28666 (patch)
tree684141f62b0f246718247ce52bcc89091b418faa /libavformat
parent4dfb74cd4f22a2cc621e87e4a9447cfe2edcb871 (diff)
downloadffmpeg-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.c2
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;