From 4925b6e784cad1b00561f786b92a8d5eb6c28666 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 6 Jan 2012 17:30:05 +0100 Subject: [PATCH] tta: fix off be 1 error in the end detection. Fixes use of uninitialized values. Signed-off-by: Michael Niedermayer --- libavformat/tta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;