summaryrefslogtreecommitdiff
path: root/libavformat/mp3dec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-06-24 02:46:05 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-06-24 02:52:11 +0200
commit041aa800f22090e0b7ff2a79098d632c9e3a7e92 (patch)
tree16ca371bc859682a683c1051ac6602995d8170ac /libavformat/mp3dec.c
parent89a420b71b531bcd0344f39d0390c26f3e0173ea (diff)
avformat/mp3dec: Remove the ID3v1 tag removial code
The code is simply broken, the read packets are not aligned to the mp3 frames, the file end or the id3 tag thus this simply cannot reliably find the ID3v1 tag to remove it Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mp3dec.c')
-rw-r--r--libavformat/mp3dec.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/libavformat/mp3dec.c b/libavformat/mp3dec.c
index 841e0ca4b4..ff794ff277 100644
--- a/libavformat/mp3dec.c
+++ b/libavformat/mp3dec.c
@@ -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;
}