X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fmatroskaenc.c;h=11174f1a3dc41a5aaa468685785f125b8b3aa11e;hb=f1edf881ef83de9f8af12fae32cb28f895ae988a;hp=82624b740d598ab752252961f75aa2aa22160414;hpb=80d44190c4d909e9685d04bcde693da3e2441dfd;p=ffmpeg diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index 82624b740d5..11174f1a3dc 100644 --- a/libavformat/matroskaenc.c +++ b/libavformat/matroskaenc.c @@ -620,7 +620,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;