From 25d8ebd422f3d6478a1add13792a9fdbb224bccc Mon Sep 17 00:00:00 2001 From: Piotr Bandurski Date: Wed, 21 Nov 2012 10:21:54 +0000 Subject: [PATCH] thp: signal EOF --- libavformat/thp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/thp.c b/libavformat/thp.c index 0e96b53a4b..44634845fa 100644 --- a/libavformat/thp.c +++ b/libavformat/thp.c @@ -151,7 +151,7 @@ static int thp_read_packet(AVFormatContext *s, if (thp->audiosize == 0) { /* Terminate when last frame is reached. */ if (thp->frame >= thp->framecnt) - return AVERROR(EIO); + return AVERROR_EOF; avio_seek(pb, thp->next_frame, SEEK_SET);