mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 21:16:24 +00:00
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:
parent
abc2545c60
commit
958ea067cb
1 changed files with 0 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue