History

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).

Richard Mitic committed 5 years ago

Commit 67c2f801 parent 05e079c1 file · +1 −0Browse files

Unified · Split

libavformat/mp3dec.c+1−0
@@ -613,6 +613,7 @@ const FFInputFormat ff_mp3_demuxer = { · 612 unmodified lines
613613 .p.flags = AVFMT_GENERIC_INDEX,
614614 .p.extensions = "mp2,mp3,m2a,mpa", /* XXX: use probe */
615615 .p.priv_class = &demuxer_class,
616+ .p.mime_type = "audio/mpeg",
616617 .read_probe = mp3_read_probe,
617618 .read_header = mp3_read_header,
618619 .read_packet = mp3_read_packet,

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t