Fix out-of-bounds waveform image rendering. 5.9
authorRobin Gareus <robin@gareus.org>
Sun, 14 May 2017 18:37:58 +0000 (20:37 +0200)
committerRobin Gareus <robin@gareus.org>
Sun, 14 May 2017 18:37:58 +0000 (20:37 +0200)
commit0e4ddcf50679d136ab8fe2356d5a7921f91aa0cb
tree6c6012213b4fc3fbb7468321b70848e264df7524
parent8242f4f636649bb8e6754a8871e7c111ebfa6dd3
Fix out-of-bounds waveform image rendering.

With large sample-rates and high-zoom-level the minimal request-size
or at least 1/10sed can exceed the max image size supported by cairo.
e.g. @192kSPS;  100ms = 19200 samples.
 * 1 sample/pixel, * 2 (left/right) = 38400px > 2^15px.
libs/canvas/wave_view.cc