diff options
author | Rostislav Pehlivanov <atomnuker@gmail.com> | 2017-11-08 23:50:04 +0000 |
---|---|---|
committer | Rostislav Pehlivanov <atomnuker@gmail.com> | 2017-11-09 02:10:46 +0000 |
commit | 519a54cc195b92fe6ba71fd156e31e944d862d7e (patch) | |
tree | a3f6b623f26afbdaf50312060e18aca7a8378c71 /libswscale/arm/yuv2rgb_neon.S | |
parent | 4b1e87dc32b7d20a61b3faac38cd18bc40029096 (diff) | |
download | ffmpeg-519a54cc195b92fe6ba71fd156e31e944d862d7e.tar.gz |
vc2enc_dwt: pad the temporary buffer by the slice size
Since non-Haar wavelets need to look into pixels outside the frame, we
need to pad the buffer. The old factor of two seemed to be a workaround
that fact and only padded to the left and bottom. This correctly pads
by the slice size and as such reduces memory usage and potential
exploits.
Reported by Liu Bingchang.
Ideally, there should be no temporary buffer but the encoder is designed
to deinterleave the coefficients into the classical wavelet structure
with the lower frequency values in the top left corner.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
(cherry picked from commit 3228ac730c11eca49d5680d5550128e397061c85)
Diffstat (limited to 'libswscale/arm/yuv2rgb_neon.S')
0 files changed, 0 insertions, 0 deletions