diff mbox series

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

Message ID 20241005192403.2450339-4-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>

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@haasn.dev>
---
 libswscale/swscale_internal.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

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,