msdkvp9enc: fix width and height
authorHaihao Xiang <haihao.xiang@intel.com>
Wed, 25 Dec 2019 02:51:36 +0000 (10:51 +0800)
committerHaihao Xiang <haihao.xiang@intel.com>
Mon, 6 Jan 2020 03:54:57 +0000 (03:54 +0000)
commitda22ff3846ddbe82214522989a09af491faff826
tree347a4c25ef5aa846e00d9bacc09dcd2c7b9cc53c
parentd6fbec5a4444faca6b3457632acf35a5cfc41ad5
msdkvp9enc: fix width and height

The frame width and height is rounded up to 128 and 32 since commit
8daac1c, so the width, height for initialization should be rounded up to
128 and 32 too because the MSDK VP9 encoder will do some check on width
and height.

Sample pipeline:
gst-launch-1.0 videotestsrc ! \
video/x-raw,width=320,height=240,format=NV12 ! msdkvp9enc ! fakesink
sys/msdk/gstmsdkvp9enc.c