Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* [FFmpeg-devel] [PATCH] avfilter/drawutils: pixelstep of 8 is supported
@ 2022-12-10 14:10 Paul B Mahol
  0 siblings, 0 replies; only message in thread
From: Paul B Mahol @ 2022-12-10 14:10 UTC (permalink / raw)
  To: FFmpeg development discussions and patches

[-- Attachment #1: Type: text/plain, Size: 15 bytes --]

Patch attached

[-- Attachment #2: 0001-avfilter-drawutils-pixelstep-of-8-is-supported.patch --]
[-- Type: text/x-patch, Size: 2445 bytes --]

From 0bbd87217e9150b23690476eaae0c6c2d3ea5b03 Mon Sep 17 00:00:00 2001
From: Paul B Mahol <onemda@gmail.com>
Date: Sat, 10 Dec 2022 15:13:46 +0100
Subject: [PATCH] avfilter/drawutils: pixelstep of 8 is supported

Signed-off-by: Paul B Mahol <onemda@gmail.com>
---
 libavfilter/drawutils.c           | 2 +-
 tests/ref/fate/filter-pixfmts-pad | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/libavfilter/drawutils.c b/libavfilter/drawutils.c
index 1081938d86..af69861b70 100644
--- a/libavfilter/drawutils.c
+++ b/libavfilter/drawutils.c
@@ -129,7 +129,7 @@ int ff_draw_init2(FFDrawContext *draw, enum AVPixelFormat format, enum AVColorSp
             pixelstep[c->plane] != c->step)
             return AVERROR(ENOSYS);
         pixelstep[c->plane] = c->step;
-        if (pixelstep[c->plane] >= 8)
+        if (pixelstep[c->plane] > 8)
             return AVERROR(ENOSYS);
         nb_planes = FFMAX(nb_planes, c->plane + 1);
     }
diff --git a/tests/ref/fate/filter-pixfmts-pad b/tests/ref/fate/filter-pixfmts-pad
index 57ccc4ae4d..ff8bfd145d 100644
--- a/tests/ref/fate/filter-pixfmts-pad
+++ b/tests/ref/fate/filter-pixfmts-pad
@@ -2,10 +2,12 @@
 0rgb                8e076dd0f8a9f4652595dffe3544f0f0
 abgr                52738042432893de555e6a3833172806
 argb                2a10108ac524b422b8a2393c064b3eab
+ayuv64le            ebb01a75bb015fff20189e6ce11d7bec
 bgr0                025d4d5e5691801ba39bc9de70e39df0
 bgr24               f8b65ad845905c7d0c93ca28dfbb826f
 bgr48le             4564b56dd1f2a9761b8a7a5244ac4c49
 bgra                929aac15e848038e367c250037575f9f
+bgra64le            b79de7611b3909d5b91398b49c5bfa89
 gbrap               5f16cccab5a17cb766c882e865995167
 gbrap10le           e63e0a1ae9afd7e6a732f18be194e761
 gbrap12le           eb7a5ff44a9b5b46bb9829838224ed8e
@@ -38,8 +40,10 @@ rgb0                0984eb985dabbe757ed6beb53db84eff
 rgb24               17f9e2e0c609009acaf2175c42d4a2a5
 rgb48le             ed08db9b1aa50d69b8c3d73db93e390e
 rgba                b157c90191463d34fb3ce77b36c96386
+rgba64le            ef1e2519fb2fdd8124b46f8dd98de4c0
 vuya                44368c0a758ee68e24ce976e3b1b8535
 vuyx                bc7c4f693a22cd1ac95e33d473086474
+xv36le              7a264debea0b82700a0c6bcef8e37abd
 xyz12le             23dadbbba70b2925ce75fb8ba8080ba3
 ya16le              8dbfcb586abf626da7d1aca887a581b9
 ya8                 495daaca2dcb4f7aeba7652768b41ced
-- 
2.37.2


[-- Attachment #3: Type: text/plain, Size: 251 bytes --]

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-12-10 14:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-10 14:10 [FFmpeg-devel] [PATCH] avfilter/drawutils: pixelstep of 8 is supported Paul B Mahol

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git