[FFmpeg-cvslog] tta: fix off be 1 error in the end detection.

Michael Niedermayer git at videolan.org
Sun Jan 8 04:21:41 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Jan  6 17:30:05 2012 +0100| [d8b33a99897f1faa8036fbdb6a6d48af9c10730f] | committer: Justin Ruggles

tta: fix off be 1 error in the end detection.
Fixes use of uninitialized values.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
Signed-off-by: Justin Ruggles <justin.ruggles at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d8b33a99897f1faa8036fbdb6a6d48af9c10730f
---

 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;



More information about the ffmpeg-cvslog mailing list