From: Niklas Haas <g...@haasn.dev>

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

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 {
-- 
2.46.1

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

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

Reply via email to