From: Michael Niedermayer <[email protected]>

Signed-off-by: Michael Niedermayer <[email protected]>
Signed-off-by: Justin Ruggles <[email protected]>
---
 libavformat/tta.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/tta.c b/libavformat/tta.c
index 37a359b..f361ba5 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;
-- 
1.7.1

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to