lavc/mediacodecdec: remove first output buffer timing debug log

This commit is contained in:
Matthieu Bouron 2016-10-06 11:53:13 +02:00
parent 8063978bfc
commit a458ed65b5
2 changed files with 0 additions and 11 deletions

View File

@ -449,9 +449,6 @@ static int mediacodec_dec_flush_codec(AVCodecContext *avctx, MediaCodecDecContex
return AVERROR_EXTERNAL; return AVERROR_EXTERNAL;
} }
s->first_buffer = 0;
s->first_buffer_at = av_gettime();
return 0; return 0;
} }
@ -468,7 +465,6 @@ int ff_mediacodec_dec_init(AVCodecContext *avctx, MediaCodecDecContext *s,
AV_PIX_FMT_NONE, AV_PIX_FMT_NONE,
}; };
s->first_buffer_at = av_gettime();
s->refcount = 1; s->refcount = 1;
pix_fmt = ff_get_format(avctx, pix_fmts); pix_fmt = ff_get_format(avctx, pix_fmts);
@ -645,10 +641,6 @@ int ff_mediacodec_dec_decode(AVCodecContext *avctx, MediaCodecDecContext *s,
if (index >= 0) { if (index >= 0) {
int ret; int ret;
if (!s->first_buffer++) {
av_log(avctx, AV_LOG_DEBUG, "Got first buffer after %fms\n", (av_gettime() - s->first_buffer_at) / 1000);
}
av_log(avctx, AV_LOG_DEBUG, "Got output buffer %zd" av_log(avctx, AV_LOG_DEBUG, "Got output buffer %zd"
" offset=%" PRIi32 " size=%" PRIi32 " ts=%" PRIi64 " offset=%" PRIi32 " size=%" PRIi32 " ts=%" PRIi64
" flags=%" PRIu32 "\n", index, info.offset, info.size, " flags=%" PRIu32 "\n", index, info.offset, info.size,

View File

@ -61,9 +61,6 @@ typedef struct MediaCodecDecContext {
uint64_t dequeued_buffer_nb; uint64_t dequeued_buffer_nb;
int first_buffer;
double first_buffer_at;
} MediaCodecDecContext; } MediaCodecDecContext;
int ff_mediacodec_dec_init(AVCodecContext *avctx, int ff_mediacodec_dec_init(AVCodecContext *avctx,