aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/ipmovie.c
diff options
context:
space:
mode:
authorHein-Pieter van Braam <hp@tmm.cx>2017-06-17 21:43:36 +0200
committerJames Almer <jamrial@gmail.com>2017-06-18 11:02:05 -0300
commit099d35401c1a266724a723d71aa12e53addfe037 (patch)
tree4aa5038d30ba4486ad1310417004ba80a736b1bb /libavformat/ipmovie.c
parent14b834c45a00d89f4f4713e6977b31c51fef1286 (diff)
downloadffmpeg-099d35401c1a266724a723d71aa12e53addfe037.tar.gz
Cleanly exit at the end of an Interplay MVE
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Hein-Pieter van Braam <hp@tmm.cx> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/ipmovie.c')
-rw-r--r--libavformat/ipmovie.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/ipmovie.c b/libavformat/ipmovie.c
index a83909f148..29eeaf6b8b 100644
--- a/libavformat/ipmovie.c
+++ b/libavformat/ipmovie.c
@@ -650,6 +650,8 @@ static int ipmovie_read_packet(AVFormatContext *s,
ret = AVERROR(EIO);
else if (ret == CHUNK_NOMEM)
ret = AVERROR(ENOMEM);
+ else if (ret == CHUNK_END || ret == CHUNK_SHUTDOWN)
+ ret = AVERROR_EOF;
else if (ret == CHUNK_VIDEO)
ret = 0;
else if (ret == CHUNK_INIT_VIDEO || ret == CHUNK_INIT_AUDIO)