Module: libav
Branch: master
Commit: 4b4acc544f9b7b8bedaae4613913e140f4430aa8

Author:    Michael Niedermayer <[email protected]>
Committer: Justin Ruggles <[email protected]>
Date:      Fri Jan  6 17:34:22 2012 +0100

tta: Fix returned error code at EOF

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 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;
 

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

Reply via email to