summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHein-Pieter van Braam <[email protected]>2017-06-17 21:43:36 +0200
committerJames Almer <[email protected]>2017-06-18 11:02:05 -0300
commit099d35401c1a266724a723d71aa12e53addfe037 (patch)
tree4aa5038d30ba4486ad1310417004ba80a736b1bb
parent14b834c45a00d89f4f4713e6977b31c51fef1286 (diff)
Cleanly exit at the end of an Interplay MVE
Reviewed-by: Paul B Mahol <[email protected]> Signed-off-by: Hein-Pieter van Braam <[email protected]> Signed-off-by: James Almer <[email protected]>
-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)