Commit d0e67627 authored by Aman Gupta's avatar Aman Gupta

avcodec/mediacodecdec_common: log codec name during configure/start failures

Signed-off-by: 's avatarAman Gupta <aman@tmm1.net>
Signed-off-by: 's avatarMatthieu Bouron <matthieu.bouron@gmail.com>
parent ca613dcc
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment