diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-04-30 23:49:56 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-04-30 23:49:56 +0200 |
commit | 5299ee54a73ff1c4d4a4a3ee7b84dae2ffb2fb5f (patch) | |
tree | 3157586c1aeab6f4abd922032d3cbe4307191d52 /libavcodec | |
parent | c3bd306e78f9e3ca2f136f5b30cbe49fa0884f82 (diff) | |
download | ffmpeg-5299ee54a73ff1c4d4a4a3ee7b84dae2ffb2fb5f.tar.gz |
h264: assert that croping values at slice level are consistent
These values where checked before already.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/h264.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 502ee9251d..03b6bda0e1 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -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 && |