Commit f0839764 authored by Michael Niedermayer's avatar Michael Niedermayer

ffmpeg: fix type of dither scale.

This allows non integer scales.
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 046b5339
......@@ -1624,7 +1624,7 @@ static void do_audio_out(AVFormatContext *s, OutputStream *ost,
dec->channel_layout, dec->sample_fmt, dec->sample_rate,
0, NULL);
av_opt_set_int(ost->swr, "dither_method", ost->swr_dither_method,0);
av_opt_set_int(ost->swr, "dither_scale", ost->swr_dither_scale,0);
av_opt_set_double(ost->swr, "dither_scale", ost->swr_dither_scale,0);
if (ost->audio_channels_mapped)
swr_set_channel_mapping(ost->swr, ost->audio_channels_map);
av_opt_set_double(ost->swr, "rmvol", ost->rematrix_volume, 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment