]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/wc3movie.c
Fix packet_buffer memory leak in avformat_free_context
[ffmpeg] / libavformat / wc3movie.c
index 408c050b7c78ac7ff5aebb8c96da7ec141a018c2..a60f128172bd499951cfd702306cdaaa5c2fe735 100644 (file)
@@ -159,7 +159,7 @@ static int wc3_read_header(AVFormatContext *s)
         fourcc_tag = avio_rl32(pb);
         /* chunk sizes are 16-bit aligned */
         size = (avio_rb32(pb) + 1) & (~1);
-        if (url_feof(pb))
+        if (avio_feof(pb))
             return AVERROR(EIO);
 
     } while (fourcc_tag != BRCH_TAG);
@@ -211,7 +211,7 @@ static int wc3_read_packet(AVFormatContext *s,
         fourcc_tag = avio_rl32(pb);
         /* chunk sizes are 16-bit aligned */
         size = (avio_rb32(pb) + 1) & (~1);
-        if (url_feof(pb))
+        if (avio_feof(pb))
             return AVERROR(EIO);
 
         switch (fourcc_tag) {