[FFmpeg-devel] [PATCH v4] avfilter: fix data type for {Tile, Untile}Context's image size
Andrew Sayers
ffmpeg-devel at pileofstuff.org
Tue Jul 23 17:42:32 EEST 2024
These are accessed as AV_OPT_TYPE_IMAGE_SIZE AVOptions,
so must be implemented as (signed) int's
---
libavfilter/vf_tile.c | 2 +-
libavfilter/vf_untile.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavfilter/vf_tile.c b/libavfilter/vf_tile.c
index b45e739bb6..95ac3a1992 100644
--- a/libavfilter/vf_tile.c
+++ b/libavfilter/vf_tile.c
@@ -34,7 +34,7 @@
typedef struct TileContext {
const AVClass *class;
- unsigned w, h;
+ int w, h;
unsigned margin;
unsigned padding;
unsigned overlap;
diff --git a/libavfilter/vf_untile.c b/libavfilter/vf_untile.c
index f32f3e186b..bfc0998b46 100644
--- a/libavfilter/vf_untile.c
+++ b/libavfilter/vf_untile.c
@@ -28,7 +28,7 @@
typedef struct UntileContext {
const AVClass *class;
- unsigned w, h;
+ int w, h;
unsigned current;
unsigned nb_frames;
AVFrame *frame;
--
2.45.2
More information about the ffmpeg-devel
mailing list