X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fmatroskadec.c;h=43ad9af0db2b3273631450ab43853822ccd1ddce;hb=e2adb00ec587dd48746b0d24648005d22c91423c;hp=1807caef9cb237215685fc0218dab4ca70982a50;hpb=90ec89a629b3bd948713c8da2f7f118f4a5620b2;p=ffmpeg diff --git a/libavformat/matroskadec.c b/libavformat/matroskadec.c index 1807caef9cb..43ad9af0db2 100644 --- a/libavformat/matroskadec.c +++ b/libavformat/matroskadec.c @@ -2065,7 +2065,9 @@ static int matroska_parse_tracks(AVFormatContext *s) st->codec->channels = track->audio.channels; if (!st->codec->bits_per_coded_sample) st->codec->bits_per_coded_sample = track->audio.bitdepth; - if (st->codec->codec_id != AV_CODEC_ID_AAC) + if (st->codec->codec_id == AV_CODEC_ID_MP3) + st->need_parsing = AVSTREAM_PARSE_FULL; + else if (st->codec->codec_id != AV_CODEC_ID_AAC) st->need_parsing = AVSTREAM_PARSE_HEADERS; if (track->codec_delay > 0) { st->codec->delay = av_rescale_q(track->codec_delay,