]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/mp3dec.c
avformat/asfdec: Allow packet_obj_size == 0
[ffmpeg] / libavformat / mp3dec.c
index 07d7f543453a3e930a35141454c1ca710b3f839e..ff794ff277731584cd9319b43956909d088dd5a9 100644 (file)
@@ -377,7 +377,7 @@ static int mp3_read_header(AVFormatContext *s)
         if (!(i&1023))
             ffio_ensure_seekback(s->pb, i + 1024 + 4);
         if (check(s, off + i) >= 0) {
-            av_log(s, AV_LOG_INFO, "Skipping %d bytes of junk at %lld.\n", i, (long long)off);
+            av_log(s, AV_LOG_INFO, "Skipping %d bytes of junk at %"PRId64".\n", i, off);
             avio_seek(s->pb, off + i, SEEK_SET);
             break;
         }
@@ -415,13 +415,6 @@ static int mp3_read_packet(AVFormatContext *s, AVPacket *pkt)
     pkt->flags &= ~AV_PKT_FLAG_CORRUPT;
     pkt->stream_index = 0;
 
-    if (ret >= ID3v1_TAG_SIZE &&
-        memcmp(&pkt->data[ret - ID3v1_TAG_SIZE], "TAG", 3) == 0)
-        ret -= ID3v1_TAG_SIZE;
-
-    /* note: we need to modify the packet size here to handle the last
-       packet */
-    pkt->size = ret;
     return ret;
 }