diff --git a/api/source/mk_frame.cpp b/api/source/mk_frame.cpp index 367e8cc3..ff45da07 100644 --- a/api/source/mk_frame.cpp +++ b/api/source/mk_frame.cpp @@ -161,16 +161,16 @@ API_EXPORT uint32_t API_CALL mk_frame_get_flags(mk_frame frame) { auto &ref = *((Frame::Ptr *) frame); uint32_t ret = 0; if (ref->keyFrame()) { - ret &= MK_FRAME_FLAG_IS_KEY; + ret |= MK_FRAME_FLAG_IS_KEY; } if (ref->configFrame()) { - ret &= MK_FRAME_FLAG_IS_CONFIG; + ret |= MK_FRAME_FLAG_IS_CONFIG; } if (ref->dropAble()) { - ret &= MK_FRAME_FLAG_DROP_ABLE; + ret |= MK_FRAME_FLAG_DROP_ABLE; } if (!ref->decodeAble()) { - ret &= MK_FRAME_FLAG_NOT_DECODE_ABLE; + ret |= MK_FRAME_FLAG_NOT_DECODE_ABLE; } return ret; -} \ No newline at end of file +}