GNOME Bugzilla – Bug 765116
scaletempo: memory corruption
Last modified: 2016-04-15 17:06:55 UTC
This regression was introduced in 1.8.0 by commit 1e0b9b98534b2a889fd16503fca945d76d51edc5 The scaletempo->bytes_per_sample field is now used in reinit_buffers() instead of the hardcoded value (4). But for a S16LE audio stream here, bps is equal to 2 in the set_caps() function. To reproduce the bug, with a WebKitGTK browser, go to: http://yt-dash-mse-test.commondatastorage.googleapis.com/unit-tests/2016.html?test_type=progressive-test&command=run&disable_log=false&enablewebm=false&tests=30,31,33,34
Created attachment 326119 [details] [review] scaletempo: S16 uses S32 temporary buffers, float/double their own type Make sure to allocate not only a S16 buffer for S16 but a twice as big one to hold S32.
Attachment 326119 [details] pushed as 2dee0e3 - scaletempo: S16 uses S32 temporary buffers, float/double their own type