Browse Source

lavc/mediacodecdec: remove first output buffer timing debug log

tags/n3.2
Matthieu Bouron 9 years ago
parent
commit
a458ed65b5
2 changed files with 0 additions and 11 deletions
  1. +0
    -8
      libavcodec/mediacodecdec.c
  2. +0
    -3
      libavcodec/mediacodecdec.h

+ 0
- 8
libavcodec/mediacodecdec.c 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,


+ 0
- 3
libavcodec/mediacodecdec.h 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,


Loading…
Cancel
Save