mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-17 22:06:41 +00:00
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>
This commit is contained in:
parent
6e72f45a8f
commit
caf28d8f12
1 changed files with 1 additions and 1 deletions
|
@ -652,7 +652,7 @@ gst_va_h264_dec_new_sequence (GstH264Decoder * decoder, const GstH264SPS * sps,
|
|||
/* *INDENT-OFF* */
|
||||
base->valign = (GstVideoAlignment) {
|
||||
.padding_bottom = self->coded_height - base->height,
|
||||
.padding_left = self->coded_width - base->width,
|
||||
.padding_right = self->coded_width - base->width,
|
||||
};
|
||||
/* *INDENT-ON* */
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue