Skip to content
  • Haihao Xiang's avatar
    msdk: adjust the stride align · 39badea2
    Haihao Xiang authored
    GstAllocationParams::align is set to 31 in msdkdec/msdken/msdkvpp, hence
    the stride align should be greater than or equal to 31, otherwise it
    will result in issue
    gstreamer/gst-plugins-bad#861
    (msdk: "GStreamer-CRITICAL: gst_buffer_resize_range failed" SPAM),
    
    In addition, the stride for a surface in the media driver is aligned to
    128, so we should set the stride align in this plugin to 127, which may
    avoid the NV12 issue mentioned in commit 3f2314a1
    
    Fixed gstreamer/gst-plugins-bad#861
    39badea2