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

Thomas Guillem git at videolan.org
Wed Oct 30 08:15:55 CET 2019


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

mediacodec: assert that omx quirks are the same

(cherry picked from commit 334608fdd934b53dcf1d6483c7a7ee3b9c72d058)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>

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

 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 773bb5a9db..07fd79593a 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