avformat/mpc8: do not return error on stream end
authorPaul B Mahol <onemda@gmail.com>
Thu, 29 Mar 2018 18:46:36 +0000 (20:46 +0200)
committerPaul B Mahol <onemda@gmail.com>
Thu, 29 Mar 2018 18:46:36 +0000 (20:46 +0200)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavformat/mpc8.c

index f280faa..79e5f6a 100644 (file)
@@ -297,7 +297,7 @@ static int mpc8_read_packet(AVFormatContext *s, AVPacket *pkt)
             return 0;
         }
         if(tag == TAG_STREAMEND)
-            return AVERROR(EIO);
+            return AVERROR_EOF;
         mpc8_handle_chunk(s, tag, pos, size);
     }
     return AVERROR_EOF;