]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/mm.c
Partial rewrite stream probe code.
[ffmpeg] / libavformat / mm.c
index 2c0d215abf2a62a3c7feda9cb78c443b6f9bd4d8..c6264f1cb7c191af8d7d4d62c6599dc533036790 100644 (file)
@@ -102,7 +102,7 @@ static int read_header(AVFormatContext *s,
     avio_rl16(pb);   /* ibm-pc video bios mode */
     width = avio_rl16(pb);
     height = avio_rl16(pb);
-    url_fseek(pb, length - 10, SEEK_CUR);  /* unknown data */
+    avio_skip(pb, length - 10);  /* unknown data */
 
     /* video stream */
     st = av_new_stream(s, 0);
@@ -181,7 +181,7 @@ static int read_packet(AVFormatContext *s,
 
         default :
             av_log(s, AV_LOG_INFO, "unknown chunk type 0x%x\n", type);
-            url_fseek(pb, length, SEEK_CUR);
+            avio_skip(pb, length);
         }
     }