From d8b33a99897f1faa8036fbdb6a6d48af9c10730f Mon Sep 17 00:00:00 2001
From: Michael Niedermayer <michaelni@gmx.at>
Date: Fri, 6 Jan 2012 17:30:05 +0100
Subject: 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>
---
 libavformat/tta.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
-- 
cgit v1.2.3