mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-02-04 14:30:55 +08:00
Replace usages of av_get_bits_per_sample_fmt() with av_get_bytes_per_sample().
av_get_bits_per_sample_fmt() is deprecated.
This commit is contained in:
@@ -187,8 +187,8 @@ ReSampleContext *av_audio_resample_init(int output_channels, int input_channels,
|
||||
|
||||
s->sample_fmt[0] = sample_fmt_in;
|
||||
s->sample_fmt[1] = sample_fmt_out;
|
||||
s->sample_size[0] = av_get_bits_per_sample_fmt(s->sample_fmt[0]) >> 3;
|
||||
s->sample_size[1] = av_get_bits_per_sample_fmt(s->sample_fmt[1]) >> 3;
|
||||
s->sample_size[0] = av_get_bytes_per_sample(s->sample_fmt[0]);
|
||||
s->sample_size[1] = av_get_bytes_per_sample(s->sample_fmt[1]);
|
||||
|
||||
if (s->sample_fmt[0] != AV_SAMPLE_FMT_S16) {
|
||||
if (!(s->convert_ctx[0] = av_audio_convert_alloc(AV_SAMPLE_FMT_S16, 1,
|
||||
|
||||
Reference in New Issue
Block a user