diff options
author | Richard Mitic <richardmitic@spotify.com> | 2021-05-04 14:50:42 +0200 |
---|---|---|
committer | Tomas Härdin <git@haerdin.se> | 2024-11-20 15:48:19 +0100 |
commit | 67c2f80d2ccfe2c0eb3e39aeef66eb7e17794e95 (patch) | |
tree | a497cafd321d787346efb4d83c1afc458232c001 | |
parent | 05e079c94890b69e46c0e2205eaad7fc529f5806 (diff) | |
download | ffmpeg-67c2f80d2ccfe2c0eb3e39aeef66eb7e17794e95.tar.gz |
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).
-rw-r--r-- | libavformat/mp3dec.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/mp3dec.c b/libavformat/mp3dec.c index 0029ba63aa..dac91205d9 100644 --- a/libavformat/mp3dec.c +++ b/libavformat/mp3dec.c @@ -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, |