vlc | branch: master | Francois Cartegnie <[email protected]> | Mon Nov 28 19:40:05 2016 +0100| [2570c6ce23e73c4a99c15c1cf5279bd95e16692e] | committer: Francois Cartegnie
vout: decklink: add static asserts > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2570c6ce23e73c4a99c15c1cf5279bd95e16692e --- modules/video_output/decklink.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/video_output/decklink.cpp b/modules/video_output/decklink.cpp index ae52a6d..e160cfb 100644 --- a/modules/video_output/decklink.cpp +++ b/modules/video_output/decklink.cpp @@ -165,6 +165,7 @@ static const char * const rgsz_afd_text[] = { "14: 16:9 (with shoot and protect 14:9 centre)", "15: 16:9 (with shoot and protect 4:3 centre)", }; +static_assert(ARRAY_SIZE(rgi_afd_values) == ARRAY_SIZE(rgsz_afd_text), "afd arrays messed up"); static const int rgi_ar_values[] = { 0, 1, @@ -173,6 +174,7 @@ static const char * const rgsz_ar_text[] = { "0: 4:3", "1: 16:9", }; +static_assert(ARRAY_SIZE(rgi_ar_values) == ARRAY_SIZE(rgsz_ar_text), "afd arrays messed up"); struct vout_display_sys_t { _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
