diff --git a/mpp/base/mpp_frame.cpp b/mpp/base/mpp_frame.cpp index 4c15f804..ff15bf1b 100644 --- a/mpp/base/mpp_frame.cpp +++ b/mpp/base/mpp_frame.cpp @@ -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; }