]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/mp3dec.c
avformat/asfdec: Allow packet_obj_size == 0
[ffmpeg] / libavformat / mp3dec.c
index 841e0ca4b492d4619c8cca7431e022a7caa1c190..ff794ff277731584cd9319b43956909d088dd5a9 100644 (file)
@@ -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;
 }