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).
Unified · Split
| @@ -613,6 +613,7 @@ const FFInputFormat ff_mp3_demuxer = { · 612 unmodified lines | ||
| 613 | 613 | .p.flags = AVFMT_GENERIC_INDEX, |
| 614 | 614 | .p.extensions = "mp2,mp3,m2a,mpa", /* XXX: use probe */ |
| 615 | 615 | .p.priv_class = &demuxer_class, |
| 616 | + .p.mime_type = "audio/mpeg", | |
| 616 | 617 | .read_probe = mp3_read_probe, |
| 617 | 618 | .read_header = mp3_read_header, |
| 618 | 619 | .read_packet = mp3_read_packet, |