This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit 8fe61b7a6446b6a687b9056ba34664a2de168e5a
Author:     sfan5 <[email protected]>
AuthorDate: Thu Jul 16 12:35:36 2026 +0200
Commit:     Zhao Zhili <[email protected]>
CommitDate: Mon Jul 20 02:35:53 2026 +0000

    libavcodec/mediacodecdec_common: improve logging for failing to get codec
    
    The logging should obviously happen before returning an error.
    Also include the mime type and detected profile.
    
    Signed-off-by: sfan5 <[email protected]>
---
 libavcodec/mediacodecdec_common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/mediacodecdec_common.c 
b/libavcodec/mediacodecdec_common.c
index 9a627c06de..7d86094d05 100644
--- a/libavcodec/mediacodecdec_common.c
+++ b/libavcodec/mediacodecdec_common.c
@@ -779,12 +779,12 @@ static int mediacodec_dec_get_video_codec(AVCodecContext 
*avctx, MediaCodecDecCo
 
     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
         // mediacodec can be used without JVM.
         if (!s->use_ndk_codec) {
             return AVERROR_EXTERNAL;
         }
-        av_log(avctx, AV_LOG_INFO, "Failed to getCodecNameByType\n");
     } else {
         av_log(avctx, AV_LOG_DEBUG, "Found decoder %s\n", s->codec_name);
     }

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to