aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPiotr Bandurski <ami_stuff@o2.pl>2012-11-21 10:21:54 +0000
committerPaul B Mahol <onemda@gmail.com>2012-11-21 10:21:54 +0000
commit25d8ebd422f3d6478a1add13792a9fdbb224bccc (patch)
treeb31cab9a43ee26553acbac538b3150ff3dbdcbf6
parent9a0ecd507a94b974206bfc96c6784c6c21462116 (diff)
downloadffmpeg-25d8ebd422f3d6478a1add13792a9fdbb224bccc.tar.gz
thp: signal EOF
-rw-r--r--libavformat/thp.c2
1 files changed, 1 insertions, 1 deletions
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);