mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-19 22:10:34 +00:00
Use sample format for bit depth if av_get_bits_per_sample() doesn't give one
Originally committed as revision 10362 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
8eb1915395
commit
a6da1aa057
@ -498,6 +498,9 @@ static int mkv_write_tracks(AVFormatContext *s)
|
|||||||
int sample_rate = codec->sample_rate;
|
int sample_rate = codec->sample_rate;
|
||||||
int output_sample_rate = 0;
|
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)
|
if (codec->codec_id == CODEC_ID_AAC)
|
||||||
get_aac_sample_rates(codec, &sample_rate, &output_sample_rate);
|
get_aac_sample_rates(codec, &sample_rate, &output_sample_rate);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user