Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.5, 6.8, 6.9
-
None
-
-
5d599c305 (dev), 10c9ff0db (6.9), d137a96d8 (6.8), c68dfb564 (dev), 75e7010db (tqtc/lts-6.5), b818fde98 (6.9), 4d803d788 (6.8)
-
Multimedia wk 5-6
Description
To reproduce, use AudioRecorder app.
1. Select audio codec A-EC3 (has a buffer size of 12288 bytes
2. Record audio and stop
3. Select audio codec AAC (has a buffer size of 8192)
4. Record audio and stop
5. If app did not crash, repeat from 1
The reason is a bug in the logic for sending audio buffers. An internal 'm_pcm' array is used to accumulate data, but if this array size is greater than the current buffer size, the application crashes when copying a negative number of bytes.
Attachments
Issue Links
- is duplicated by
-
QTBUG-117396 [Crash] Stopping the recording after switching between the audio codecs causes the audiorecorder example to crash on android
-
- Closed
-