[mpp_frame]: Ignore hdr flag on comparing frame

The HDR flag will not change the buffer size just ignore it.

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: Ibebe60b8c0961e87b2b84236dd28a23e05f9d58f
This commit is contained in:
Herman Chen 2023-03-09 14:51:47 +08:00
parent da6ad1ee5e
commit 7aece2c5d8

View file

@ -212,7 +212,7 @@ MPP_RET mpp_frame_info_cmp(MppFrame frame0, MppFrame frame1)
(f0->height == f1->height) &&
(f0->hor_stride == f1->hor_stride) &&
(f0->ver_stride == f1->ver_stride) &&
(f0->fmt == f1->fmt) &&
((f0->fmt & ~MPP_FRAME_HDR_MASK) == (f1->fmt & ~MPP_FRAME_HDR_MASK)) &&
(f0->buf_size == f1->buf_size)) {
return MPP_OK;
}