From 099d35401c1a266724a723d71aa12e53addfe037 Mon Sep 17 00:00:00 2001 From: Hein-Pieter van Braam Date: Sat, 17 Jun 2017 21:43:36 +0200 Subject: [PATCH] Cleanly exit at the end of an Interplay MVE Reviewed-by: Paul B Mahol Signed-off-by: Hein-Pieter van Braam Signed-off-by: James Almer --- libavformat/ipmovie.c | 2 ++ 1 file changed, 2 insertions(+) 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)