• Haihao Xiang's avatar
    msdk: adjust the stride align · 8daac1c0
    Haihao Xiang authored and Víctor Manuel Jáquez Leal's avatar Víctor Manuel Jáquez Leal committed
    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
    #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 #861
    8daac1c0