aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/tta.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-01-06 17:34:22 +0100
committerJustin Ruggles <justin.ruggles@gmail.com>2012-01-07 09:59:15 -0500
commit4b4acc544f9b7b8bedaae4613913e140f4430aa8 (patch)
tree0b091bbdcd56231eb5dd9ac4c4dd9899aec43db9 /libavformat/tta.c
parentd8b33a99897f1faa8036fbdb6a6d48af9c10730f (diff)
downloadffmpeg-4b4acc544f9b7b8bedaae4613913e140f4430aa8.tar.gz
tta: Fix returned error code at EOF
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
Diffstat (limited to 'libavformat/tta.c')
-rw-r--r--libavformat/tta.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/tta.c b/libavformat/tta.c
index f361ba5188..6bf097975a 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;