mirror of
https://github.com/opencv/opencv.git
synced 2026-11-28 12:27:16 -06:00
Optimize audio buffer duration calculation in MSMF capture. Fixes #27969 #28017 ### Description Cache the repeated calculation of `(bit_per_sample/8)*nChannels` in a local variable to avoid redundant computations in `grabFrame()` and `configureAudioFrame()` functions. ### Changes - Added `bytesPerSample` local variable in both functions - Replaced 6 repeated calculations with the cached variable - Improves performance in frequently called audio processing code Fixes #27969