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:40 +0000 |
commit | 7cce800930556e691e23a092a442102bb68e0f6f (patch) | |
tree | 79404e9779c83afe3e2a61ebb87fe07cc6320726 /libavcodec/arm/aacpsdsp_init_arm.c | |
parent | 38c1df15c6a3358a22aaf753320988a95c977ce7 (diff) | |
download | ffmpeg-7cce800930556e691e23a092a442102bb68e0f6f.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 'libavcodec/arm/aacpsdsp_init_arm.c')
0 files changed, 0 insertions, 0 deletions