msdkdec: refine picture struct setting
-
The workaround for picture struct after MFXVideoDECODE_Query is only required for VP8 decoding, so call preinit_decoder after MFXVideoDECODE_Query and move this workaround to msdkvp8dec
-
Don't reset picture struct before MFXVideoDECODE_Query, which may avoid MFX_ERR_INCOMPATIBLE_VIDEO_PARAM when decoding some VC1 streams, and this change doesn't cause regression when decoding other codec files
sample pipeline:
gst-launch-1.0 filesrc location=SA10104.vc1 !
'video/x-wmv,profile=(string)advanced',width=720,height=480,framerate=14/1 !
msdkvc1dec ! fakesink