Browse Source

ividsp: zero pitch so as not to overread

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.11
Michael Niedermayer 14 years ago
parent
commit
12038ab16d
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavcodec/ivi_dsp.c

+ 3
- 0
libavcodec/ivi_dsp.c View File

@@ -55,6 +55,9 @@ void ff_ivi_recompose53(const IVIPlaneDesc *plane, uint8_t *dst,
b3_ptr = plane->bands[3].buf;

for (y = 0; y < plane->height; y += 2) {

if (y+2 >= plane->height)
pitch= 0;
/* load storage variables with values */
if (num_bands > 0) {
b0_1 = b0_ptr[0];


Loading…
Cancel
Save