Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAman Gupta <aman@tmm1.net>2018-03-07 00:14:51 +0300
committerAman Gupta <aman@tmm1.net>2018-03-08 03:22:50 +0300
commit823a758543e2b1052cdcff22d02d396f4e0792f9 (patch)
tree7c95c70fb1a5a598290661dab80a0e737812a5e2 /libavcodec/mediacodec.c
parent2a0eb8685728ccb260e42f60e1dbefe47ababbc3 (diff)
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 bf1b7477f1..3ddd303c97 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);
}