[FFmpeg-cvslog] ffmpeg: fix type of dither scale.

Michael Niedermayer git at videolan.org
Tue May 1 20:42:32 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue May  1 20:13:32 2012 +0200| [f08397642fed84ac7e6eaffbe3e05e96ecaf5aa1] | committer: Michael Niedermayer

ffmpeg: fix type of dither scale.

This allows non integer scales.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f08397642fed84ac7e6eaffbe3e05e96ecaf5aa1
---

 ffmpeg.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index 37817cc..a13dcf7 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -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);



More information about the ffmpeg-cvslog mailing list