diff mbox series

[FFmpeg-devel,10/12] swscale/internal: forward typedef SwsContext

Message ID 20241005192403.2450339-10-ffmpeg@haasn.xyz
State New
Headers show
Series [FFmpeg-devel,01/12] avfilter/src_movie: configure correct YUV attributes | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 fail Make failed

Commit Message

Niklas Haas Oct. 5, 2024, 7:24 p.m. UTC
From: Niklas Haas <git@haasn.dev>

Sponsored-by: Sovereign Tech Fund
Signed-off-by: Niklas Haas <git@haasn.dev>
---
 libswscale/swscale_internal.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Comments

Michael Niedermayer Oct. 6, 2024, 10:24 p.m. UTC | #1
On Sat, Oct 05, 2024 at 09:24:01PM +0200, Niklas Haas wrote:
> From: Niklas Haas <git@haasn.dev>
> 
> Sponsored-by: Sovereign Tech Fund
> Signed-off-by: Niklas Haas <git@haasn.dev>
> ---
>  libswscale/swscale_internal.h | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)

LGTM

thx

[...]
diff mbox series

Patch

diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h
index 7b7dfafac1..0e9d37b5b0 100644
--- a/libswscale/swscale_internal.h
+++ b/libswscale/swscale_internal.h
@@ -64,7 +64,7 @@ 
 
 #define RETCODE_USE_CASCADE -12345
 
-struct SwsContext;
+typedef struct SwsContext SwsContext;
 
 typedef enum SwsDither {
     SWS_DITHER_AUTO = 0,
@@ -96,7 +96,7 @@  typedef struct RangeList {
 
 int ff_range_add(RangeList *r, unsigned int start, unsigned int len);
 
-typedef int (*SwsFunc)(struct SwsContext *c, const uint8_t *const src[],
+typedef int (*SwsFunc)(SwsContext *c, const uint8_t *const src[],
                        const int srcStride[], int srcSliceY, int srcSliceH,
                        uint8_t *const dst[], const int dstStride[]);
 
@@ -296,7 +296,7 @@  struct SwsSlice;
 struct SwsFilterDescriptor;
 
 /* This struct should be aligned on at least a 32-byte boundary. */
-typedef struct SwsContext {
+struct SwsContext {
     /**
      * info on struct for av_log
      */
@@ -680,7 +680,7 @@  typedef struct SwsContext {
     atomic_int   data_unaligned_warned;
 
     Half2FloatTables *h2f_tables;
-} SwsContext;
+};
 //FIXME check init (where 0)
 
 SwsFunc ff_yuv2rgb_get_func_ptr(SwsContext *c);