mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
mkv: Force the full parsing of mp3
Some muxer might or might not fit incomplete mp3 frames in their packets. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
parent
3ef98937f5
commit
f273f7fb25
@ -1871,6 +1871,8 @@ static int matroska_parse_tracks(AVFormatContext *s)
|
|||||||
st->codec->channels = track->audio.channels;
|
st->codec->channels = track->audio.channels;
|
||||||
if (st->codec->codec_id != AV_CODEC_ID_AAC)
|
if (st->codec->codec_id != AV_CODEC_ID_AAC)
|
||||||
st->need_parsing = AVSTREAM_PARSE_HEADERS;
|
st->need_parsing = AVSTREAM_PARSE_HEADERS;
|
||||||
|
if (st->codec->codec_id == AV_CODEC_ID_MP3)
|
||||||
|
st->need_parsing = AVSTREAM_PARSE_FULL;
|
||||||
} else if (track->type == MATROSKA_TRACK_TYPE_SUBTITLE) {
|
} else if (track->type == MATROSKA_TRACK_TYPE_SUBTITLE) {
|
||||||
st->codec->codec_type = AVMEDIA_TYPE_SUBTITLE;
|
st->codec->codec_type = AVMEDIA_TYPE_SUBTITLE;
|
||||||
if (st->codec->codec_id == AV_CODEC_ID_SSA)
|
if (st->codec->codec_id == AV_CODEC_ID_SSA)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user