[FFmpeg-soc] [soc]: r699 - matroska/matroskaenc.c
conrad
subversion at mplayerhq.hu
Sat Aug 11 21:55:22 CEST 2007
Author: conrad
Date: Sat Aug 11 21:55:22 2007
New Revision: 699
Log:
Use sample format for bit depth if av_get_bits_per_sample() doesn't give one
Modified:
matroska/matroskaenc.c
Modified: matroska/matroskaenc.c
==============================================================================
--- matroska/matroskaenc.c (original)
+++ matroska/matroskaenc.c Sat Aug 11 21:55:22 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-soc
mailing list