libs: dec: vp9: do not use display size as decoded size

If display size is smaller than current frame size, then the crop size
will be set as display size, which either crashes the pipeline or the
output MD5 does not match. Rather it should use the actual decoded size.

This patch removes the cropping set. For rendering we can use aspect
ratio to set display size.

Fixes #175

Signed-off-by: Wang Zhanjun <zhanjunx.wang@intel.com>
Signed-off-by: Xu Guangxin <guangxin.xu@intel.com>
This commit is contained in:
Wang Zhanjun 2019-06-24 16:26:56 -04:00 committed by Víctor Manuel Jáquez Leal
parent abc2545c60
commit 958ea067cb

View file

@ -536,12 +536,6 @@ decode_picture (GstVaapiDecoderVp9 * decoder, const guchar * buf,
crop_width = frame_hdr->width;
crop_height = frame_hdr->height;
}
if (frame_hdr->display_size_enabled &&
(frame_hdr->width > frame_hdr->display_width
|| frame_hdr->height > frame_hdr->display_height)) {
crop_width = frame_hdr->display_width;
crop_height = frame_hdr->display_height;
}
if (crop_width || crop_height) {
GstVaapiRectangle crop_rect;
crop_rect.x = 0;