vaapidecode: set initial decode format according surface chroma type
authorWangfei <fei.w.wang@intel.com>
Tue, 25 Jun 2019 02:31:20 +0000 (10:31 +0800)
committerVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Wed, 26 Jun 2019 10:36:56 +0000 (10:36 +0000)
commite4bec306b6b5695f1a12bafdb79508011488e693
treec3dacbe2355f31f16b5bd1c0507eadc25a2de3ab
parent67ed67515bc1b3b8914364e427deea336c8cd6b9
vaapidecode: set initial decode format according surface chroma type

For surfaces with different chroma type, it is prefer to initialize
a format which chroma type should be same with surface chroma type
instead of using fixed NV12.
gst/vaapi/gstvaapidecode.c