]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/mpc8.c
avcodec/alsdec: Fix integer overflow with buffer number
[ffmpeg] / libavformat / mpc8.c
index f280faa5ccd0b9314697593fcbc33a3d93d41b31..0eb879ffc0d959c67f8fc63ff042b4546567bb5c 100644 (file)
@@ -73,7 +73,7 @@ static inline int64_t bs_get_v(const uint8_t **bs)
     return v - br;
 }
 
-static int mpc8_probe(AVProbeData *p)
+static int mpc8_probe(const AVProbeData *p)
 {
     const uint8_t *bs = p->buf + 4;
     const uint8_t *bs_end = bs + p->buf_size;
@@ -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;