!275 hevc初始化拉流量大

Merge pull request !275 from yj/OpenHarmony-5.0-Release
This commit is contained in:
openharmony_ci 2024-09-15 11:07:16 +00:00 committed by Gitee
commit 8b1b02942d
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