mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 11:19:55 +00:00
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>
This commit is contained in:
parent
ca613dcc38
commit
d0e6762768
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user