From 4b4acc544f9b7b8bedaae4613913e140f4430aa8 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 6 Jan 2012 17:34:22 +0100 Subject: tta: Fix returned error code at EOF Signed-off-by: Michael Niedermayer Signed-off-by: Justin Ruggles --- libavformat/tta.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavformat/tta.c') 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; -- cgit v1.2.3