[FFmpeg-cvslog] tta: Fix returned error code at EOF

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:34:22 2012 +0100| [4b4acc544f9b7b8bedaae4613913e140f4430aa8] | committer: Justin Ruggles

tta: Fix returned error code at EOF

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=4b4acc544f9b7b8bedaae4613913e140f4430aa8
---

 libavformat/tta.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/tta.c b/libavformat/tta.c
index f361ba5..6bf0979 100644
--- a/libavformat/tta.c
+++ b/libavformat/tta.c
@@ -126,7 +126,7 @@ static int tta_read_packet(AVFormatContext *s, AVPacket *pkt)
 
     // FIXME!
     if (c->currentframe >= c->totalframes)
-        return -1;
+        return AVERROR_EOF;
 
     size = st->index_entries[c->currentframe].size;
 



More information about the ffmpeg-cvslog mailing list