From: Michael Niedermayer Date: Fri, 6 Jan 2012 16:30:05 +0000 (+0100) Subject: tta: fix off be 1 error in the end detection. X-Git-Tag: n0.10~80^2~194 X-Git-Url: http://git.ffmpeg.org/gitweb/ffmpeg.git/commitdiff_plain/d8b33a99897f1faa8036fbdb6a6d48af9c10730f tta: fix off be 1 error in the end detection. Fixes use of uninitialized values. Signed-off-by: Michael Niedermayer Signed-off-by: Justin Ruggles --- 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;