Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-01-06 20:30:05 +0400
committerMichael Niedermayer <michaelni@gmx.at>2012-01-07 03:08:36 +0400
commit4925b6e784cad1b00561f786b92a8d5eb6c28666 (patch)
tree684141f62b0f246718247ce52bcc89091b418faa /libavformat/tta.c
parent4dfb74cd4f22a2cc621e87e4a9447cfe2edcb871 (diff)
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/tta.c')
-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;