diff options
author | Aman Gupta <aman@tmm1.net> | 2019-09-05 11:33:32 -0700 |
---|---|---|
committer | Aman Gupta <aman@tmm1.net> | 2019-09-09 13:25:09 -0700 |
commit | d0e67627685607b903df310e0ee96e60ed4c4610 (patch) | |
tree | ea7a3732dc1359a497f41e3ca73e7fd6eeec1b3a /libavcodec/mediacodecdec_common.c | |
parent | ca613dcc387ed2ad8c7f12e8e8f972a7c57daec8 (diff) | |
download | ffmpeg-d0e67627685607b903df310e0ee96e60ed4c4610.tar.gz |
avcodec/mediacodecdec_common: log codec name during configure/start failures
Signed-off-by: Aman Gupta <aman@tmm1.net>
Signed-off-by: Matthieu Bouron <matthieu.bouron@gmail.com>
Diffstat (limited to 'libavcodec/mediacodecdec_common.c')
-rw-r--r-- | libavcodec/mediacodecdec_common.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/mediacodecdec_common.c b/libavcodec/mediacodecdec_common.c index c4e87e270f..f0752fa626 100644 --- a/libavcodec/mediacodecdec_common.c +++ b/libavcodec/mediacodecdec_common.c @@ -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; |