[FFmpeg-devel] [PATCH 04/12] swscale/internal: swap SWS_DITHER_NONE and SWS_DITHER_AUTO

Niklas Haas ffmpeg at haasn.xyz
Sat Oct 5 22:23:55 EEST 2024


From: Niklas Haas <git at haasn.dev>

This is done for consistency with the other public enums which will be
added in the upcoming swscale API refactor. I went through the code and checked
carefully that the value of `dither` is never implicitly compared against
zero, so this change should not break anything.

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

diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h
index 57e7515582..963879cf9a 100644
--- a/libswscale/swscale_internal.h
+++ b/libswscale/swscale_internal.h
@@ -67,8 +67,8 @@
 struct SwsContext;
 
 typedef enum SwsDither {
-    SWS_DITHER_NONE = 0,
-    SWS_DITHER_AUTO,
+    SWS_DITHER_AUTO = 0,
+    SWS_DITHER_NONE,
     SWS_DITHER_BAYER,
     SWS_DITHER_ED,
     SWS_DITHER_A_DITHER,
-- 
2.46.1



More information about the ffmpeg-devel mailing list