From b3554fb7211998569a10d689ecbad09b8b39905e Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Mon, 9 Mar 2020 16:04:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E9=99=A4=E7=BC=96=E8=AF=91=E8=AD=A6?= =?UTF-8?q?=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Extension/Frame.cpp | 2 +- src/Extension/Frame.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Extension/Frame.cpp b/src/Extension/Frame.cpp index 05eaee3e..2c204e19 100644 --- a/src/Extension/Frame.cpp +++ b/src/Extension/Frame.cpp @@ -39,7 +39,7 @@ Frame::Ptr Frame::getCacheAbleFrame(const Frame::Ptr &frame){ } #define SWITCH_CASE(codec_id) case codec_id : return #codec_id -char *CodecInfo::getCodecName() { +const char *CodecInfo::getCodecName() { switch (getCodecId()) { SWITCH_CASE(CodecH264); SWITCH_CASE(CodecH265); diff --git a/src/Extension/Frame.h b/src/Extension/Frame.h index 4819c5f1..66218b0c 100644 --- a/src/Extension/Frame.h +++ b/src/Extension/Frame.h @@ -77,7 +77,7 @@ public: * 获取编码器名称 * @return 编码器名称 */ - char *getCodecName(); + const char *getCodecName(); }; /**