Merge commit '335ec616cc38ee6206a3acebd46d01aad73d721b' into release/0.10

* commit '335ec616cc38ee6206a3acebd46d01aad73d721b':
  utvideodec: Handle slice_height being zero

Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2015-03-11 23:11:29 +01:00
commit a0316589e4
1 changed files with 4 additions and 0 deletions

View File

@ -246,6 +246,8 @@ static void restore_median(uint8_t *src, int step, int stride,
for (slice = 0; slice < slices; slice++) {
slice_start = ((slice * height) / slices) & cmask;
slice_height = ((((slice + 1) * height) / slices) & cmask) - slice_start;
if (!slice_height)
continue;
bsrc = src + slice_start * stride;
@ -301,6 +303,8 @@ static void restore_median_il(uint8_t *src, int step, int stride,
slice_start = ((slice * height) / slices) & cmask;
slice_height = ((((slice + 1) * height) / slices) & cmask) - slice_start;
slice_height >>= 1;
if (!slice_height)
continue;
bsrc = src + slice_start * stride;