mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-17 21:14:47 +00:00
libaformat/mp3dec: Register the MIME type "audio/mpeg" to the mp3 decoder.
Some mp3 files look surprisingly like mpeg PS streams. In order for us to hint to ffmpeg that the file really is mp3, we can deliver it with a mime type. The mp3 probe therefore needs to have a mime type registered, (which is previously did not).
This commit is contained in:
parent
05e079c948
commit
67c2f80d2c
@ -613,6 +613,7 @@ const FFInputFormat ff_mp3_demuxer = {
|
||||
.p.flags = AVFMT_GENERIC_INDEX,
|
||||
.p.extensions = "mp2,mp3,m2a,mpa", /* XXX: use probe */
|
||||
.p.priv_class = &demuxer_class,
|
||||
.p.mime_type = "audio/mpeg",
|
||||
.read_probe = mp3_read_probe,
|
||||
.read_header = mp3_read_header,
|
||||
.read_packet = mp3_read_packet,
|
||||
|
Loading…
Reference in New Issue
Block a user