[vlc-devel] [PATCH] mediacodec: fix check on csd i_count

Zhao Zhili quinkblack at foxmail.com
Thu Aug 2 10:53:19 CEST 2018


---
 modules/codec/omxil/mediacodec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/omxil/mediacodec.c b/modules/codec/omxil/mediacodec.c
index 2a87dbe..9ee2cf6 100644
--- a/modules/codec/omxil/mediacodec.c
+++ b/modules/codec/omxil/mediacodec.c
@@ -222,7 +222,7 @@ static void CSDFree(decoder_t *p_dec)
 static void CSDInit(decoder_t *p_dec, block_t *p_blocks, size_t i_count)
 {
     decoder_sys_t *p_sys = p_dec->p_sys;
-    assert(i_count >= 0 && i_count <= 3);
+    assert(i_count <= MAX_CSD_COUNT);
 
     CSDFree(p_dec);
 
-- 
2.9.5



More information about the vlc-devel mailing list