Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-11-26 07:06:19 +0400
committerMichael Niedermayer <michaelni@gmx.at>2012-11-26 07:06:19 +0400
commitb5e0e327ceb738c1d329f741e731f77eea8c976a (patch)
tree2dc5cbf9c130d525d2dde408a722a71b9ab78f36 /ffmpeg_filter.c
parent4bd6d73fc8d4bc367668f2770d92a06b0c79146d (diff)
ffmpeg: fix swr filter_type for auto inserted aresample filters
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg_filter.c')
-rw-r--r--ffmpeg_filter.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ffmpeg_filter.c b/ffmpeg_filter.c
index d960f1f3b1..5e371282c9 100644
--- a/ffmpeg_filter.c
+++ b/ffmpeg_filter.c
@@ -727,6 +727,8 @@ int configure_filtergraph(FilterGraph *fg)
fg->graph->scale_sws_opts = av_strdup(args);
args[0] = 0;
+ if (ost->swr_filter_type != SWR_FILTER_TYPE_KAISER)
+ av_strlcatf(args, sizeof(args), "filter_type=%d:", (int)ost->swr_filter_type);
if (ost->swr_dither_method)
av_strlcatf(args, sizeof(args), "dither_method=%d:", (int)ost->swr_dither_method);
if (ost->swr_dither_scale != 1.0)