[FFmpeg-cvslog] matroskaenc: fix -codec copy with TTA
Paul B Mahol
git at videolan.org
Thu Jan 24 13:02:11 CET 2013
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Thu Jan 24 11:58:51 2013 +0000| [ee8d4a4142886123d05e994f8aef97d7bcf1181e] | committer: Paul B Mahol
matroskaenc: fix -codec copy with TTA
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ee8d4a4142886123d05e994f8aef97d7bcf1181e
---
libavformat/matroskaenc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index 15bf4ed..a34f485 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);
More information about the ffmpeg-cvslog
mailing list