lavc/qsvdec: expose frame pic_type and key_frame
authorZhong Li <zhong.li@intel.com>
Wed, 4 Apr 2018 09:51:29 +0000 (17:51 +0800)
committerMaxym Dmytrychenko <maxim.d33@gmail.com>
Sun, 8 Apr 2018 18:47:59 +0000 (20:47 +0200)
commit52ed83fa1a7f5170447eff6fad0b6c57119596e9
tree1ac74520d86c718e9585866207b8c2b34144051e
parentb0958698ea2b976063cb1d683becc213040c709b
lavc/qsvdec: expose frame pic_type and key_frame

Currently pict_type and key_frame are unset.
Add an extra param to fetch the picture type from qsv decoder

The judgement “key frame is equal to IDR frame” only suitable for H264.
For HEVC, all IRAP frames are key frames, and other codecs have no IDR
frame.

Signed-off-by: ChaoX A Liu <chaox.a.liu@intel.com>
Signed-off-by: Zhong Li <zhong.li@intel.com>
Signed-off-by: Maxym Dmytrychenko <maxim.d33@gmail.com>
libavcodec/qsv.c
libavcodec/qsv_internal.h
libavcodec/qsvdec.c