[vlc-commits] mediacodec: fix check on csd i_count
Zhao Zhili
git at videolan.org
Wed Aug 8 13:53:38 CEST 2018
vlc/vlc-3.0 | branch: master | Zhao Zhili <quinkblack at foxmail.com> | Thu Aug 2 16:53:19 2018 +0800| [fb5fc884310ad372055b6b9961096f5967448c88] | committer: Thomas Guillem
mediacodec: fix check on csd i_count
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
(cherry picked from commit 0cdd6619555ddbee99f1097ecfbaefe22c7dafab)
Signed-off-by: Thomas Guillem <thomas at gllm.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=fb5fc884310ad372055b6b9961096f5967448c88
---
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 0090182bcf..4ff8038bc3 100644
--- a/modules/codec/omxil/mediacodec.c
+++ b/modules/codec/omxil/mediacodec.c
@@ -220,7 +220,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);
More information about the vlc-commits
mailing list