vlc | branch: master | Thomas Guillem <[email protected]> | Wed Jan 13 15:54:04 2021 +0100| [0afacd5cb391fe8e7bb3464444fefe976a242516] | committer: Thomas Guillem
qsv: fix invalid assert on error Initialize the sys->packets list before handling error path that do check that this list is empty. > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0afacd5cb391fe8e7bb3464444fefe976a242516 --- modules/codec/qsv.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/codec/qsv.c b/modules/codec/qsv.c index 8f5e2aa003..e996b2ae21 100644 --- a/modules/codec/qsv.c +++ b/modules/codec/qsv.c @@ -437,6 +437,8 @@ static int Open(vlc_object_t *this) enc->p_sys = sys; + vlc_list_init(&sys->packets); + config_ChainParse(enc, SOUT_CFG_PREFIX, sout_options, enc->p_cfg); /* Checking if we are on software and are allowing it */ @@ -603,7 +605,6 @@ static int Open(vlc_object_t *this) enc->fmt_out.i_extra = i_extra; sys->async_depth = sys->params.AsyncDepth; - vlc_list_init(&sys->packets); /* Vlc module configuration */ enc->fmt_in.i_codec = VLC_CODEC_NV12; // Intel Media SDK requirement _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
