mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-17 13:04:50 +00:00
h264: assert that croping values at slice level are consistent
These values where checked before already. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
c3bd306e78
commit
5299ee54a7
@ -3055,6 +3055,8 @@ static int init_dimensions(H264Context *h)
|
||||
{
|
||||
int width = h->width - (h->sps.crop_right + h->sps.crop_left);
|
||||
int height = h->height - (h->sps.crop_top + h->sps.crop_bottom);
|
||||
av_assert0(h->sps.crop_right + h->sps.crop_left < (unsigned)h->width);
|
||||
av_assert0(h->sps.crop_top + h->sps.crop_bottom < (unsigned)h->height);
|
||||
|
||||
/* handle container cropping */
|
||||
if (!h->sps.crop &&
|
||||
|
Loading…
Reference in New Issue
Block a user