commit | bec7135fa17a0e5c8eb0b709bc85083ab4635967 | [log] [tgz] |
---|---|---|
author | Cindy Liu <hcindyl@google.com> | Thu Dec 03 08:22:44 2020 -0800 |
committer | Cindy Liu <hcindyl@google.com> | Thu Dec 03 08:31:51 2020 -0800 |
tree | c85e7dfccffcb66aa94f93e8650deb5604cf49c7 | |
parent | 2bcc0424c5ca79b86b455dea34f62d18c539e3b0 [diff] |
media: platform: mtk-vcodec-mt8167: fix decoder v4l2 framesize alignment MTK VPU supports h264 microblock size of 16, however, the driver wrongfully aligns the v4l2 VIDIOC_S_FMT to 64, causing the mismatch between the internal buffer size and the v4l2 framesize. For example, qHD (960x540) video would have the buffer in 960x544 while the v4l2 framesize is set as 960x576. Realign the size with the microblock size. Bug: 174737545 Change-Id: I44e92fbae4dd49fcbbd920cee11e9cbd379551db