[vlc-devel] [PATCH 5/7] vlc_fourcc: add a macro to get the string for a FOURCC

Steve Lhomme robux4 at videolabs.io
Thu May 11 09:36:07 CEST 2017


---
 include/vlc_fourcc.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/vlc_fourcc.h b/include/vlc_fourcc.h
index b950b0622b..d6a2c5085e 100644
--- a/include/vlc_fourcc.h
+++ b/include/vlc_fourcc.h
@@ -24,6 +24,8 @@
 #ifndef VLC_FOURCC_H
 #define VLC_FOURCC_H 1
 
+#define FOURCC_STR(fc) ((const char *)&(fc))
+
 /* Video codec */
 #define VLC_CODEC_MPGV            VLC_FOURCC('m','p','g','v')
 #define VLC_CODEC_MP4V            VLC_FOURCC('m','p','4','v')
-- 
2.12.1



More information about the vlc-devel mailing list