[vlc-commits] mediacodec: assert that omx quirks are the same

Thomas Guillem git at videolan.org
Tue Oct 29 13:45:59 CET 2019


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Tue Oct 29 13:41:56 2019 +0100| [334608fdd934b53dcf1d6483c7a7ee3b9c72d058] | committer: Thomas Guillem

mediacodec: assert that omx quirks are the same

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=334608fdd934b53dcf1d6483c7a7ee3b9c72d058
---

 modules/codec/omxil/mediacodec_ndk.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/modules/codec/omxil/mediacodec_ndk.c b/modules/codec/omxil/mediacodec_ndk.c
index d9a1641208..fad9e1689d 100644
--- a/modules/codec/omxil/mediacodec_ndk.c
+++ b/modules/codec/omxil/mediacodec_ndk.c
@@ -38,6 +38,13 @@
 
 #include "mediacodec.h"
 
+static_assert(MC_API_NO_QUIRKS == OMXCODEC_NO_QUIRKS
+    && MC_API_QUIRKS_NEED_CSD == OMXCODEC_QUIRKS_NEED_CSD
+    && MC_API_VIDEO_QUIRKS_IGNORE_PADDING == OMXCODEC_VIDEO_QUIRKS_IGNORE_PADDING
+    && MC_API_VIDEO_QUIRKS_SUPPORT_INTERLACED == OMXCODEC_VIDEO_QUIRKS_SUPPORT_INTERLACED
+    && MC_API_AUDIO_QUIRKS_NEED_CHANNELS == OMXCODEC_AUDIO_QUIRKS_NEED_CHANNELS,
+    "mediacodec.h/omx_utils.h mismatch");
+
 char* MediaCodec_GetName(vlc_object_t *p_obj, const char *psz_mime,
                          int hxxx_profile, int *p_quirks);
 



More information about the vlc-commits mailing list