]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/g723_1.c
mp3probe: Detect mp3 stronger with just 200 frames, this should speed up detection
[ffmpeg] / libavformat / g723_1.c
index ecf3d0da03846e3c903c4f00a1a4c44e8f7587dc..09fd6141fc9455579e230448d357186a784319e7 100644 (file)
@@ -50,8 +50,8 @@ static int g723_1_read_packet(AVFormatContext *s, AVPacket *pkt)
 {
     int size, byte, ret;
 
-    pkt->pos = url_ftell(s->pb);
-    byte     = get_byte(s->pb);
+    pkt->pos = avio_tell(s->pb);
+    byte     = avio_r8(s->pb);
     size     = frame_size[byte & 3];
 
     ret = av_new_packet(pkt, size);