mirror of https://git.ffmpeg.org/ffmpeg.git
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:
commit
a0316589e4
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue