va: h264dec: Set the padding to VideoAlignment's right.
authorHe Junyan <junyan.he@intel.com>
Mon, 26 Oct 2020 03:50:59 +0000 (11:50 +0800)
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 27 Oct 2020 14:18:07 +0000 (14:18 +0000)
commitcaf28d8f123a5af6610cf8a92e5f08f976f2d960
treeeac8f332ada3b05d053713c5f8ef9ca3a70f9315
parent6e72f45a8f69e55db19fc11cb9a46df31b7eb162
va: h264dec: Set the padding to VideoAlignment's right.

In our va implemenation, we just use image's info to map the buffer.
The padding info just plays a role as a place holder to expand the
allocation size in caps when decoding size is bigger than display
size. So the padding_right or padding_left does not change the result.
But we find if using padding_left, it is hard to meet the requirement
of gst_video_meta_validate_alignment(), when the video meta's stride
is different from the allocation width.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1698>
sys/va/gstvah264dec.c