消除编译警告

This commit is contained in:
xiongziliang 2020-03-09 16:04:34 +08:00
parent 800b0d81f3
commit b3554fb721
2 changed files with 2 additions and 2 deletions

View File

@ -39,7 +39,7 @@ Frame::Ptr Frame::getCacheAbleFrame(const Frame::Ptr &frame){
} }
#define SWITCH_CASE(codec_id) case codec_id : return #codec_id #define SWITCH_CASE(codec_id) case codec_id : return #codec_id
char *CodecInfo::getCodecName() { const char *CodecInfo::getCodecName() {
switch (getCodecId()) { switch (getCodecId()) {
SWITCH_CASE(CodecH264); SWITCH_CASE(CodecH264);
SWITCH_CASE(CodecH265); SWITCH_CASE(CodecH265);

View File

@ -77,7 +77,7 @@ public:
* *
* @return * @return
*/ */
char *getCodecName(); const char *getCodecName();
}; };
/** /**