!271 起播时延大

Merge pull request !271 from yj/OpenHarmony-5.0-Release
This commit is contained in:
openharmony_ci 2024-09-14 02:02:10 +00:00 committed by Gitee
commit 9d96e41b75
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 5 additions and 0 deletions

View File

@ -146,6 +146,7 @@ config("ffmpeg_config") {
"-DOHOS_TIMED_META_TRACK",
"-DOHOS_SUBTITLE_DEMUXER",
"-DOHOS_EXPAND_MP4_INFO",
"-DOHOS_OPTIMIZE_DELAY",
]
if (use_musl) {
cflags += [ "-Wno-bool-operation" ]

View File

@ -1976,6 +1976,10 @@ static int has_codec_parameters(const AVStream *st, const char **errmsg_ptr)
break;
case AVMEDIA_TYPE_VIDEO:
if (!avctx->width)
#ifdef DOHOS_OPTIMIZE_DELAY
if (!(st->codecpar->codec_id == AV_CODEC_ID_HEVC) &&
!(st->disposition & AV_DISPOSITION_ATTACHED_PIC))
#endif
FAIL("unspecified size");
if (sti->info->found_decoder >= 0 && avctx->pix_fmt == AV_PIX_FMT_NONE)
FAIL("unspecified pixel format");