lavfi/drawutils: ensure we can't overflow a component
This commit is contained in:
parent
f00079b25c
commit
f320722eb5
@ -112,6 +112,8 @@ int ff_draw_init(FFDrawContext *draw, enum AVPixelFormat format, unsigned flags)
|
||||
if (depthb && (depthb != db))
|
||||
return AVERROR(ENOSYS);
|
||||
depthb = db;
|
||||
if (db * (c->offset + 1) > 16)
|
||||
return AVERROR(ENOSYS);
|
||||
/* strange interleaving */
|
||||
if (pixelstep[c->plane] != 0 &&
|
||||
pixelstep[c->plane] != c->step)
|
||||
|
Loading…
x
Reference in New Issue
Block a user