diff options
author | rcombs <rcombs@rcombs.me> | 2021-12-23 20:56:50 -0600 |
---|---|---|
committer | rcombs <rcombs@rcombs.me> | 2022-01-04 19:39:22 -0600 |
commit | f67bd3a8254f50676dee037a0c0b31e4148c1a85 (patch) | |
tree | c11e4d0c0784c49b8cddd1c7856ba6534a8c29ca /libavfilter | |
parent | f320722eb5e3af84860063827636369115094ab5 (diff) | |
download | ffmpeg-f67bd3a8254f50676dee037a0c0b31e4148c1a85.tar.gz |
lavfi/drawutils: ensure we don't support formats with non-pixel-sized offsets
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/drawutils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/drawutils.c b/libavfilter/drawutils.c index bcdb669bd3..5308fcbc0f 100644 --- a/libavfilter/drawutils.c +++ b/libavfilter/drawutils.c @@ -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) |