mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 05:00:37 +00:00
commit
9d96e41b75
1
BUILD.gn
1
BUILD.gn
@ -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" ]
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user