Skip to content

msdk: adjust the stride align

Haihao Xiang requested to merge haihao/gst-plugins-bad:msdk-fix-stride into master

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 (closed) (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 (closed)

Edited by Haihao Xiang

Merge request reports