diff mbox series

[FFmpeg-devel,v4] avfilter: fix data type for {Tile, Untile}Context's image size

Message ID 20240723144232.308100-1-ffmpeg-devel@pileofstuff.org
State New
Headers show
Series [FFmpeg-devel,v4] avfilter: fix data type for {Tile, Untile}Context's image size | expand

Checks

Context Check Description
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andrew Sayers July 23, 2024, 2:42 p.m. UTC
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 mbox series

Patch

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;