mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
ffv1: fix calculating slice dimensions for version 2
It got broken in 0f13cd3187
.
CC:libav-stable@libav.org
This commit is contained in:
parent
7b89cd20d8
commit
d243896987
@ -734,8 +734,8 @@ static int read_header(FFV1Context *f)
|
|||||||
|
|
||||||
fs->slice_x /= f->num_h_slices;
|
fs->slice_x /= f->num_h_slices;
|
||||||
fs->slice_y /= f->num_v_slices;
|
fs->slice_y /= f->num_v_slices;
|
||||||
fs->slice_width /= f->num_h_slices - fs->slice_x;
|
fs->slice_width = fs->slice_width / f->num_h_slices - fs->slice_x;
|
||||||
fs->slice_height /= f->num_v_slices - fs->slice_y;
|
fs->slice_height = fs->slice_height / f->num_v_slices - fs->slice_y;
|
||||||
if ((unsigned)fs->slice_width > f->width ||
|
if ((unsigned)fs->slice_width > f->width ||
|
||||||
(unsigned)fs->slice_height > f->height)
|
(unsigned)fs->slice_height > f->height)
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
|
Loading…
Reference in New Issue
Block a user