Skip to content
  • Haihao Xiang's avatar
    msdk: adjust the stride align · cf4310f7
    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 should match the pitch alignment in the media driver,
    otherwise it will result in some issues when a buffer is shared between
    different elements, e.g. the NV12 issue mentioned in commit 3f2314a1, which
    can be reproduced by `gst-launch-1.0 vidoetestsrc ! msdkvpp !
    video/x-raw\(memory:DMABuf\),format=NV12 ! glimagesink`
    
    Fixed gstreamer/gst-plugins-bad#861
    cf4310f7