[FFmpeg-cvslog] r10362 - trunk/libavformat/matroskaenc.c
conrad
subversion
Wed Sep 5 02:25:14 CEST 2007
Author: conrad
Date: Wed Sep 5 02:25:14 2007
New Revision: 10362
Log:
Use sample format for bit depth if av_get_bits_per_sample() doesn't give one
Modified:
trunk/libavformat/matroskaenc.c
Modified: trunk/libavformat/matroskaenc.c
==============================================================================
--- trunk/libavformat/matroskaenc.c (original)
+++ trunk/libavformat/matroskaenc.c Wed Sep 5 02:25:14 2007
@@ -498,6 +498,9 @@ static int mkv_write_tracks(AVFormatCont
int sample_rate = codec->sample_rate;
int output_sample_rate = 0;
+ if (!bit_depth)
+ bit_depth = av_get_bits_per_sample_format(codec->sample_fmt);
+
if (codec->codec_id == CODEC_ID_AAC)
get_aac_sample_rates(codec, &sample_rate, &output_sample_rate);
More information about the ffmpeg-cvslog
mailing list