diff options
author | Matthieu Bouron <matthieu.bouron@stupeflix.com> | 2016-06-01 12:05:49 +0200 |
---|---|---|
committer | Matthieu Bouron <matthieu.bouron@stupeflix.com> | 2016-06-07 10:22:27 +0200 |
commit | 1729387c7ad65696f24ea24d55b4161bd5905eac (patch) | |
tree | 9cb22c291bf89fe105b8a04cd39ccfa7c31dc026 | |
parent | 93f4d1646e9441b89e19073d6ad8e187bd705640 (diff) | |
download | ffmpeg-1729387c7ad65696f24ea24d55b4161bd5905eac.tar.gz |
lavc/mediacodec: improve error messages
-rw-r--r-- | libavcodec/mediacodecdec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/mediacodecdec.c b/libavcodec/mediacodecdec.c index 712f984701..676ade73a1 100644 --- a/libavcodec/mediacodecdec.c +++ b/libavcodec/mediacodecdec.c @@ -198,7 +198,7 @@ static int mediacodec_wrap_buffer(AVCodecContext *avctx, done: status = ff_AMediaCodec_releaseOutputBuffer(s->codec, index, 0); if (status < 0) { - av_log(NULL, AV_LOG_ERROR, "Failed to release output buffer\n"); + av_log(avctx, AV_LOG_ERROR, "Failed to release output buffer\n"); ret = AVERROR_EXTERNAL; } @@ -539,7 +539,7 @@ int ff_mediacodec_dec_flush(AVCodecContext *avctx, MediaCodecDecContext *s) status = ff_AMediaCodec_flush(codec); if (status < 0) { - av_log(NULL, AV_LOG_ERROR, "Failed to flush MediaCodec %p", codec); + av_log(avctx, AV_LOG_ERROR, "Failed to flush codec\n"); return AVERROR_EXTERNAL; } |