]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/mediacodecdec_common: log codec name during configure/start failures
authorAman Gupta <aman@tmm1.net>
Thu, 5 Sep 2019 18:33:32 +0000 (11:33 -0700)
committerAman Gupta <aman@tmm1.net>
Mon, 9 Sep 2019 20:25:09 +0000 (13:25 -0700)
Signed-off-by: Aman Gupta <aman@tmm1.net>
Signed-off-by: Matthieu Bouron <matthieu.bouron@gmail.com>
libavcodec/mediacodecdec_common.c

index c4e87e270fa83cf195a334548a33eb9b31905859..f0752fa62617d869ff357c062bd6eaa2fcbdf9e5 100644 (file)
@@ -525,8 +525,8 @@ int ff_mediacodec_dec_init(AVCodecContext *avctx, MediaCodecDecContext *s,
     if (status < 0) {
         char *desc = ff_AMediaFormat_toString(format);
         av_log(avctx, AV_LOG_ERROR,
-            "Failed to configure codec (status = %d) with format %s\n",
-            status, desc);
+            "Failed to configure codec %s (status = %d) with format %s\n",
+            s->codec_name, status, desc);
         av_freep(&desc);
 
         ret = AVERROR_EXTERNAL;
@@ -537,8 +537,8 @@ int ff_mediacodec_dec_init(AVCodecContext *avctx, MediaCodecDecContext *s,
     if (status < 0) {
         char *desc = ff_AMediaFormat_toString(format);
         av_log(avctx, AV_LOG_ERROR,
-            "Failed to start codec (status = %d) with format %s\n",
-            status, desc);
+            "Failed to start codec %s (status = %d) with format %s\n",
+            s->codec_name, status, desc);
         av_freep(&desc);
         ret = AVERROR_EXTERNAL;
         goto fail;