[vlc-devel] [PATCH] input: decoder: fix NULL deref on early cancellation
Francois Cartegnie
fcvlcdev at free.fr
Mon Mar 9 22:50:55 CET 2020
---
src/input/decoder.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/input/decoder.c b/src/input/decoder.c
index d868c21f23..998a2816bb 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -650,7 +650,8 @@ static picture_t *ModuleThread_NewVideoBuffer( decoder_t *p_dec )
{
struct decoder_owner *p_owner = dec_get_owner( p_dec );
assert( p_owner->p_vout );
-
+ if( p_owner->out_pool == NULL )
+ return NULL;
picture_t *pic = picture_pool_Wait( p_owner->out_pool );
if (pic)
picture_Reset( pic );
--
2.24.1
More information about the vlc-devel
mailing list