You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
lavfi/drawutils: ensure we don't support formats with non-pixel-sized offsets
This commit is contained in:
@@ -114,6 +114,8 @@ int ff_draw_init(FFDrawContext *draw, enum AVPixelFormat format, unsigned flags)
|
||||
depthb = db;
|
||||
if (db * (c->offset + 1) > 16)
|
||||
return AVERROR(ENOSYS);
|
||||
if (c->offset % db)
|
||||
return AVERROR(ENOSYS);
|
||||
/* strange interleaving */
|
||||
if (pixelstep[c->plane] != 0 &&
|
||||
pixelstep[c->plane] != c->step)
|
||||
|
Reference in New Issue
Block a user