msdkdec: force the alignment of width/height to 16 for vp8/vp9
authorHaihao Xiang <haihao.xiang@intel.com>
Fri, 22 Feb 2019 08:20:16 +0000 (16:20 +0800)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Wed, 27 Feb 2019 15:56:29 +0000 (15:56 +0000)
commita751b33072055e069d1adba3ac9eb881d804d759
tree5308456d134c5666966785234fec17107932e180
parent0806f94e1cffeebf329b271d7b2c3716e0233c54
msdkdec: force the alignment of width/height to 16 for vp8/vp9

MSDK library requires 16 alignment for vp8/vp9, otherwise a pipeline
for vp8/vp9 decoding might fail.

example pipeline:
gst-launch-1.0 filesrc location=vp8_1280x720.webm ! matroskademux ! \
msdkvp8dec ! fakesink

0:00:00.150565444 10657 0x55c8484036d0 ERROR                msdkdec
gstmsdkdec.c:1056:gst_msdkdec_handle_frame:<msdkvp8dec0>
DecodeFrameAsync failed (invalid video parameters)
sys/msdk/gstmsdkdec.c
sys/msdk/gstmsdkdec.h
sys/msdk/gstmsdkvp8dec.c
sys/msdk/gstmsdkvp9dec.c