summaryrefslogtreecommitdiffstats
path: root/libavcodec/mediacodec.c
diff options
context:
space:
mode:
authorAman Gupta <aman@tmm1.net>2018-03-06 13:14:51 -0800
committerAman Gupta <aman@tmm1.net>2018-03-07 16:22:50 -0800
commit823a758543e2b1052cdcff22d02d396f4e0792f9 (patch)
tree7c95c70fb1a5a598290661dab80a0e737812a5e2 /libavcodec/mediacodec.c
parent2a0eb8685728ccb260e42f60e1dbefe47ababbc3 (diff)
downloadffmpeg-streaming-823a758543e2b1052cdcff22d02d396f4e0792f9.zip
ffmpeg-streaming-823a758543e2b1052cdcff22d02d396f4e0792f9.tar.gz
avcodec/mediacodecdec: add more trace logging of input/output buffers
Signed-off-by: Aman Gupta <aman@tmm1.net> Signed-off-by: Matthieu Bouron <matthieu.bouron@gmail.com>
Diffstat (limited to 'libavcodec/mediacodec.c')
-rw-r--r--libavcodec/mediacodec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/mediacodec.c b/libavcodec/mediacodec.c
index bf1b747..3ddd303 100644
--- a/libavcodec/mediacodec.c
+++ b/libavcodec/mediacodec.c
@@ -92,6 +92,9 @@ int av_mediacodec_release_buffer(AVMediaCodecBuffer *buffer, int render)
int released = atomic_fetch_add(&buffer->released, 1);
if (!released && (ctx->delay_flush || buffer->serial == atomic_load(&ctx->serial))) {
+ av_log(ctx->avctx, AV_LOG_TRACE,
+ "Releasing output buffer %zd ts=%"PRId64" render=%d\n",
+ buffer->index, buffer->pts, render);
return ff_AMediaCodec_releaseOutputBuffer(ctx->codec, buffer->index, render);
}
OpenPOWER on IntegriCloud