Skip to content

msdkdec: refine picture struct setting

Haihao Xiang requested to merge haihao/gst-plugins-bad:msdk-dec-fix-vc1 into master
  • 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

Merge request reports

Loading