From 97320a264d118b7f05ee9d1d117f6a519e68d104 Mon Sep 17 00:00:00 2001 From: "Mr. shengge" <42996533+1515guo@users.noreply.github.com> Date: Fri, 9 Sep 2022 11:05:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dc=20sdk=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E8=A7=86=E9=A2=91=E5=B8=A7flags=E4=BF=A1=E6=81=AF=E4=B8=8D?= =?UTF-8?q?=E5=AF=B9=E7=9A=84=E9=97=AE=E9=A2=98=20(#1947)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/source/mk_frame.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 +}