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>
pull/263/head
Hein-Pieter van Braam 8 years ago committed by James Almer
parent 14b834c45a
commit 099d35401c
  1. 2
      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)

Loading…
Cancel
Save