lavc/qsv: Fix MSDK initialization failure in system memory mode
authorZhong Li <zhong.li@intel.com>
Thu, 19 Sep 2019 20:45:26 +0000 (04:45 +0800)
committerZhong Li <zhong.li@intel.com>
Thu, 26 Sep 2019 05:44:02 +0000 (13:44 +0800)
commit74007dd86a87289a075926704fae5bd8ef313bb5
treea54016ed4d1874245c468d89bb92594477bd7206
parentb6be2be765b3f9104ca5bc9f608a934db0fc012a
lavc/qsv: Fix MSDK initialization failure in system memory mode

MSDK does not create internal acceleration device on Linux,
So MFXVideoCORE_SetHandle() is necessary.
It has been added for ff_qsv_init_session_device().
But missed for ff_qsv_init_internal_session() due to commit
1f26a23 overwrited commit db89f45

Fix #7030

Signed-off-by: Zhong Li <zhong.li@intel.com>
libavcodec/qsv.c
libavcodec/qsv_internal.h
libavcodec/qsvdec.c
libavcodec/qsvdec.h
libavcodec/qsvenc.c
libavcodec/qsvenc.h