[FFmpeg-cvslog] lavc/mediacodec: improve error messages
Matthieu Bouron
git at videolan.org
Tue Jun 7 10:31:53 CEST 2016
ffmpeg | branch: master | Matthieu Bouron <matthieu.bouron at stupeflix.com> | Wed Jun 1 12:05:49 2016 +0200| [1729387c7ad65696f24ea24d55b4161bd5905eac] | committer: Matthieu Bouron
lavc/mediacodec: improve error messages
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1729387c7ad65696f24ea24d55b4161bd5905eac
---
libavcodec/mediacodecdec.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavcodec/mediacodecdec.c b/libavcodec/mediacodecdec.c
index 712f984..676ade7 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;
}
More information about the ffmpeg-cvslog
mailing list