[vlc-commits] [Git][videolan/vlc][master] swscale: silent enum warnings

Romain Vimont (@rom1v) gitlab at videolan.org
Thu Jul 1 14:36:14 UTC 2021



Romain Vimont pushed to branch master at VideoLAN / VLC


Commits:
8ec0dfc3 by Romain Vimont at 2021-07-01T13:52:59+00:00
swscale: silent enum warnings

Commit b6f3628fa224a266e7f8e7559a05f293230e1d25 replaced the pixel
format type from int to enum AVPixelFormat.

As a consequence, an incomplete switch now generates a lot of warnings
(one per enum value):

    warning: enumeration value ‘AV_PIX_FMT_NONE’ not handled in switch [-Wswitch]

- - - - -


1 changed file:

- modules/video_chroma/swscale.c


Changes:

=====================================
modules/video_chroma/swscale.c
=====================================
@@ -324,6 +324,8 @@ static int GetParameters( ScalerConfiguration *p_cfg,
     case AV_PIX_FMT_ABGR:
         i_sws_flags |= SWS_ACCURATE_RND;
         break;
+    default:
+        break;
     }
 #endif
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/8ec0dfc377f4c00c2377a665331eaa31898aac8b

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/8ec0dfc377f4c00c2377a665331eaa31898aac8b
You're receiving this email because of your account on code.videolan.org.




More information about the vlc-commits mailing list