提交 ad20ff23 编写于 作者: Z Zhang Rui

android: fix lint warning: if statemtn has empty body

上级 9f6cf8c1
......@@ -125,8 +125,7 @@ public class IjkMediaFormat implements IMediaFormat {
sb.append(profile);
String codecName = mediaFormat.getString(IjkMediaMeta.IJKM_KEY_CODEC_NAME);
if (TextUtils.isEmpty(codecName)) {
} else if (codecName.equalsIgnoreCase(CODEC_NAME_H264)) {
if (!TextUtils.isEmpty(codecName) && codecName.equalsIgnoreCase(CODEC_NAME_H264)) {
int level = mediaFormat.getInteger(IjkMediaMeta.IJKM_KEY_CODEC_LEVEL);
if (level < 10)
return sb.toString();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册