summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtem Dyomin <artem.dyomin@qt.io>2023-05-11 13:48:08 +0200
committerArtem Dyomin <artem.dyomin@qt.io>2023-05-11 14:04:26 +0000
commitfd36e52f5ead74347e6d087b31bffe698e72be27 (patch)
tree6490bb4e99ef63e0f327d90c06b7df7bca5930ee
parent0a6f667a5476029ae7dd3544f8750e13678cbf29 (diff)
downloadqtmultimedia-fd36e52f5ead74347e6d087b31bffe698e72be27.tar.gz
Remove not actual resampler's setting
The "async" option was relevant for the old implementation, but now it just makes problems, namely, by making internal buffering too high, and the actual output size could be very different with the expected one, what can cause a weird behavior. Pick-to: 6.5 Change-Id: I4637d02e7f5e321fb3f674a386ef43667ed9cda9 Reviewed-by: Lars Knoll <lars@knoll.priv.no>
-rw-r--r--src/plugins/multimedia/ffmpeg/qffmpegresampler.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/plugins/multimedia/ffmpeg/qffmpegresampler.cpp b/src/plugins/multimedia/ffmpeg/qffmpegresampler.cpp
index ecb650f9d..7b06c591a 100644
--- a/src/plugins/multimedia/ffmpeg/qffmpegresampler.cpp
+++ b/src/plugins/multimedia/ffmpeg/qffmpegresampler.cpp
@@ -60,8 +60,6 @@ Resampler::Resampler(const Codec *codec, const QAudioFormat &outputFormat)
0,
nullptr);
#endif
- // if we're not the master clock, we might need to handle clock adjustments, initialize for that
- av_opt_set_double(resampler, "async", m_outputFormat.sampleRate()/50, 0);
swr_init(resampler);
}