tta: fix off be 1 error in the end detection.
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 6 Jan 2012 16:30:05 +0000 (17:30 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 6 Jan 2012 23:08:36 +0000 (00:08 +0100)
Fixes use of uninitialized values.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/tta.c

index af9476e..01cceeb 100644 (file)
@@ -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;