diff mbox series

[FFmpeg-devel,03/12] swscale/internal: rename NB_SWS_DITHER for consistency

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

Commit Message

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

Sponsored-by: Sovereign Tech Fund
Signed-off-by: Niklas Haas <git@haasn.dev>
---
 libswscale/options.c          | 2 +-
 libswscale/swscale_internal.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/libswscale/options.c b/libswscale/options.c
index 53c4f0651b..6337a9f28d 100644
--- a/libswscale/options.c
+++ b/libswscale/options.c
@@ -67,7 +67,7 @@  static const AVOption swscale_options[] = {
     { "dst_v_chr_pos",   "destination vertical chroma position in luma grid/256"  , OFFSET(dst_v_chr_pos), AV_OPT_TYPE_INT, { .i64 = -513 }, -513,      1024,             VE },
     { "dst_h_chr_pos",   "destination horizontal chroma position in luma grid/256", OFFSET(dst_h_chr_pos), AV_OPT_TYPE_INT, { .i64 = -513 }, -513,      1024,             VE },
 
-    { "sws_dither",      "set dithering algorithm",       OFFSET(dither),    AV_OPT_TYPE_INT,    { .i64  = SWS_DITHER_AUTO    }, 0,       NB_SWS_DITHER,  VE, .unit = "sws_dither" },
+    { "sws_dither",      "set dithering algorithm",       OFFSET(dither),    AV_OPT_TYPE_INT,    { .i64  = SWS_DITHER_AUTO    }, 0,       SWS_DITHER_NB,  VE, .unit = "sws_dither" },
     { "auto",            "leave choice to sws",           0,                 AV_OPT_TYPE_CONST,  { .i64  = SWS_DITHER_AUTO    }, INT_MIN, INT_MAX,        VE, .unit = "sws_dither" },
     { "bayer",           "bayer dither",                  0,                 AV_OPT_TYPE_CONST,  { .i64  = SWS_DITHER_BAYER   }, INT_MIN, INT_MAX,        VE, .unit = "sws_dither" },
     { "ed",              "error diffusion",               0,                 AV_OPT_TYPE_CONST,  { .i64  = SWS_DITHER_ED      }, INT_MIN, INT_MAX,        VE, .unit = "sws_dither" },
diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h
index 50127d288f..57e7515582 100644
--- a/libswscale/swscale_internal.h
+++ b/libswscale/swscale_internal.h
@@ -73,7 +73,7 @@  typedef enum SwsDither {
     SWS_DITHER_ED,
     SWS_DITHER_A_DITHER,
     SWS_DITHER_X_DITHER,
-    NB_SWS_DITHER,
+    SWS_DITHER_NB,
 } SwsDither;
 
 typedef enum SwsAlphaBlend {