]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/aea.c
nsv: simplify probe function
[ffmpeg] / libavformat / aea.c
index 16a11c86af48c22d099741ab9559e256aede5e14..2a1d24d7a2e2bf22c7864185b7eff40469d68050 100644 (file)
@@ -62,9 +62,9 @@ static int aea_read_header(AVFormatContext *s,
         return AVERROR(ENOMEM);
 
     /* Parse the amount of channels and skip to pos 2048(0x800) */
-    url_fskip(s->pb, 264);
-    st->codec->channels = get_byte(s->pb);
-    url_fskip(s->pb, 1783);
+    avio_skip(s->pb, 264);
+    st->codec->channels = avio_r8(s->pb);
+    avio_skip(s->pb, 1783);
 
 
     st->codec->codec_type     = AVMEDIA_TYPE_AUDIO;