diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-01-24 11:58:51 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-01-24 11:59:43 +0000 |
commit | ee8d4a4142886123d05e994f8aef97d7bcf1181e (patch) | |
tree | 85e12bb47fed673061325e35ee573e291282b1f7 /libavformat | |
parent | 9ddf5631e3192992fa4a8c0ba1863341b43a7a4b (diff) | |
download | ffmpeg-ee8d4a4142886123d05e994f8aef97d7bcf1181e.tar.gz |
matroskaenc: fix -codec copy with TTA
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/matroskaenc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c index 15bf4ed567..a34f485293 100644 --- a/libavformat/matroskaenc.c +++ b/libavformat/matroskaenc.c @@ -554,6 +554,8 @@ static int mkv_write_tracks(AVFormatContext *s) if (!bit_depth) bit_depth = av_get_bytes_per_sample(codec->sample_fmt) << 3; + if (!bit_depth) + bit_depth = codec->bits_per_coded_sample; if (codec->codec_id == AV_CODEC_ID_AAC) get_aac_sample_rates(s, codec, &sample_rate, &output_sample_rate); |