mirror of https://git.ffmpeg.org/ffmpeg.git
matroskadec: export codec bits_per_coded_sample
Fixes -codec copy with TTA from matroska to matroska. Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
ee8d4a4142
commit
dd5689a3bd
|
@ -1788,6 +1788,7 @@ static int matroska_read_header(AVFormatContext *s)
|
|||
st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
|
||||
st->codec->sample_rate = track->audio.out_samplerate;
|
||||
st->codec->channels = track->audio.channels;
|
||||
st->codec->bits_per_coded_sample = track->audio.bitdepth;
|
||||
if (st->codec->codec_id != AV_CODEC_ID_AAC)
|
||||
st->need_parsing = AVSTREAM_PARSE_HEADERS;
|
||||
} else if (track->type == MATROSKA_TRACK_TYPE_SUBTITLE) {
|
||||
|
|
Loading…
Reference in New Issue