[FFmpeg-devel] [PATCH] avformat/mp3dec: Workaround mp3 detection failure (PR #20212)

Zhao Zhili quinkblack at foxmail.com
Mon Aug 11 12:46:02 EEST 2025



> On Aug 11, 2025, at 16:40, Nicolas George <george at nsup.org> wrote:
> 
> quink (HE12025-08-11):
>> PR #20212 opened by quink
>> URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20212
>> Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/20212.patch
>> 
>> A set of files begins with the following byte sequence.
>> 
>> 00000000  4c 41 4d 45 33 2e 31 30  30 aa aa aa aa aa aa aa  |LAME3.100.......|
>> 00000010  aa aa aa aa aa aa aa aa  aa aa aa aa aa aa aa aa  |................|
>> *
>> 
>> It seems they are encoded with lame, but missing header bytes at the
>> beginning.
>> 
>> Signed-off-by: Zhao Zhili <zhilizhao at tencent.com>
> 
> The commit message should explain better what the commit does.

Any suggestions?

> 
> What other software manages to recognize these files as valid?

ffplay -f mp3 works as expected.

> 
> Regards,
> 
> -- 
>  Nicolas George
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".



More information about the ffmpeg-devel mailing list