!274 hevc初始化拉流量大

Merge pull request !274 from yj/master
This commit is contained in:
openharmony_ci 2024-09-15 05:11:42 +00:00 committed by Gitee
commit b985d21778
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1976,7 +1976,7 @@ static int has_codec_parameters(const AVStream *st, const char **errmsg_ptr)
break;
case AVMEDIA_TYPE_VIDEO:
if (!avctx->width)
#ifdef DOHOS_OPTIMIZE_DELAY
#ifdef OHOS_OPTIMIZE_DELAY
if (!(st->codecpar->codec_id == AV_CODEC_ID_HEVC) &&
!(st->disposition & AV_DISPOSITION_ATTACHED_PIC))
#endif