diff options
author | Artem Dyomin <artem.dyomin@qt.io> | 2023-05-11 13:48:08 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2023-05-11 15:56:25 +0000 |
commit | 14c0f23779f2fd70c4bac677b0c1f07a21d1bd18 (patch) | |
tree | 6dc1964ca5912b7edbebba6eeee94e90f6f3fe7a | |
parent | 9d81096320623f92f663206508fd0fdcda5c507d (diff) | |
download | qtmultimedia-14c0f23779f2fd70c4bac677b0c1f07a21d1bd18.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.
Change-Id: I4637d02e7f5e321fb3f674a386ef43667ed9cda9
Reviewed-by: Lars Knoll <lars@knoll.priv.no>
(cherry picked from commit fd36e52f5ead74347e6d087b31bffe698e72be27)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r-- | src/plugins/multimedia/ffmpeg/qffmpegresampler.cpp | 2 |
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); } |