From 96fe99cb11ab10240c30fb2defadd5324c619814 Mon Sep 17 00:00:00 2001
From: Michael Niedermayer <michaelni@gmx.at>
Date: Wed, 30 May 2012 15:55:31 +0200
Subject: [PATCH] ffmpeg: disable autoinsertion for -async on the output side
 of the filtergraph.

This fixes the issue that since the last merge -async caused 2 aresample
filters to be inserted
users that generate funny timestamps in a filtergraph should probably
manually insert a aresample filter where they need it.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
---
 ffmpeg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ffmpeg.c b/ffmpeg.c
index 24dc225e1ce..a97327b65b7 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1063,7 +1063,7 @@ static int configure_output_audio_filter(FilterGraph *fg, OutputFilter *ofilter,
     pad_idx = 0;                                                            \
 } while (0)
 
-    if (audio_sync_method > 0) {
+    if (audio_sync_method > 0 && 0) {
         char args[256] = {0};
 
         av_strlcatf(args, sizeof(args), "min_comp=0.001:min_hard_comp=%f", audio_drift_threshold);
-- 
GitLab