aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-01-06 17:30:05 +0100
committerJustin Ruggles <justin.ruggles@gmail.com>2012-01-07 09:59:09 -0500
commitd8b33a99897f1faa8036fbdb6a6d48af9c10730f (patch)
tree0e4af22327889ec5bf37763b85f6b6aaa032e56b /libavformat
parent52e9854a83a1030b3c9012aee4332fe0d71f9382 (diff)
downloadffmpeg-d8b33a99897f1faa8036fbdb6a6d48af9c10730f.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> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
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 37a359bf70..f361ba5188 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;