This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit c23123630e6a7e645c199599b8ade3fe7e9ab3db Author: sfan5 <[email protected]> AuthorDate: Thu Jul 16 12:37:22 2026 +0200 Commit: Zhao Zhili <[email protected]> CommitDate: Mon Jul 20 02:35:53 2026 +0000 libavcodec/mediacodecdec_common: support AV_HWACCEL_FLAG_ALLOW_PROFILE_MISMATCH Signed-off-by: sfan5 <[email protected]> --- libavcodec/mediacodecdec_common.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavcodec/mediacodecdec_common.c b/libavcodec/mediacodecdec_common.c index 7d86094d05..0cb9c092d7 100644 --- a/libavcodec/mediacodecdec_common.c +++ b/libavcodec/mediacodecdec_common.c @@ -778,6 +778,10 @@ static int mediacodec_dec_get_video_codec(AVCodecContext *avctx, MediaCodecDecCo } s->codec_name = ff_AMediaCodecList_getCodecNameByType(mime, profile, 0, avctx); + if (!s->codec_name && (avctx->hwaccel_flags & AV_HWACCEL_FLAG_ALLOW_PROFILE_MISMATCH)) { + profile = -1; + s->codec_name = ff_AMediaCodecList_getCodecNameByType(mime, profile, 0, avctx); + } if (!s->codec_name) { av_log(avctx, AV_LOG_INFO, "Failed to getCodecNameByType(%s, %d)\n", mime, profile); // getCodecNameByType() can fail due to missing JVM, while NDK _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
