Do not set mkv bit_depth to av_get_bytes_per_sample() for G.726.
The value is wrong and leads to broken files.
(cherry picked from commit 565102dcac)
This commit is contained in:
parent
eda6effcab
commit
0d45e821dc
1 changed files with 1 additions and 1 deletions
|
|
@ -612,7 +612,7 @@ static int mkv_write_tracks(AVFormatContext *s)
|
|||
continue;
|
||||
}
|
||||
|
||||
if (!bit_depth)
|
||||
if (!bit_depth && codec->codec_id != AV_CODEC_ID_ADPCM_G726)
|
||||
bit_depth = av_get_bytes_per_sample(codec->sample_fmt) << 3;
|
||||
if (!bit_depth)
|
||||
bit_depth = codec->bits_per_coded_sample;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue