[FFmpeg-cvslog] Cleanly exit at the end of an Interplay MVE
Hein-Pieter van Braam
git at videolan.org
Sun Jun 18 17:03:32 EEST 2017
ffmpeg | branch: master | Hein-Pieter van Braam <hp at tmm.cx> | Sat Jun 17 21:43:36 2017 +0200| [099d35401c1a266724a723d71aa12e53addfe037] | committer: James Almer
Cleanly exit at the end of an Interplay MVE
Reviewed-by: Paul B Mahol <onemda at gmail.com>
Signed-off-by: Hein-Pieter van Braam <hp at tmm.cx>
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=099d35401c1a266724a723d71aa12e53addfe037
---
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)
More information about the ffmpeg-cvslog
mailing list