You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
mp3decoder: discard ID3 tags
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -1641,6 +1641,10 @@ static int decode_frame(AVCodecContext * avctx, void *data, int *got_frame_ptr,
|
||||
return AVERROR_INVALIDDATA;
|
||||
|
||||
header = AV_RB32(buf);
|
||||
if (header>>8 == AV_RB32("TAG")>>8) {
|
||||
av_log(avctx, AV_LOG_DEBUG, "discarding ID3 tag\n");
|
||||
return buf_size;
|
||||
}
|
||||
if (ff_mpa_check_header(header) < 0) {
|
||||
av_log(avctx, AV_LOG_ERROR, "Header missing\n");
|
||||
return AVERROR_INVALIDDATA;
|
||||
|
Reference in New Issue
Block a user