diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2014-01-15 23:35:22 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2014-01-16 00:25:34 +0100 |
commit | 0d45e821dc1445fe1f10d922a2ea9d999b5fb44f (patch) | |
tree | 410a58c838780013bb77ac9fea751d46bb718e71 | |
parent | eda6effcabcf9c238e4635eb058d72371336e09b (diff) | |
download | ffmpeg-0d45e821dc1445fe1f10d922a2ea9d999b5fb44f.tar.gz |
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 565102dcac4959da60e6b1528dc31315d21194ca)
-rw-r--r-- | libavformat/matroskaenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index 60b6e5ea78..ea45d9c19f 100644 --- a/libavformat/matroskaenc.c +++ b/libavformat/matroskaenc.c @@ -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; |