mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 19:30:05 +00:00
lavc/mediacodecdec: remove first output buffer timing debug log
This commit is contained in:
parent
8063978bfc
commit
a458ed65b5
@ -449,9 +449,6 @@ static int mediacodec_dec_flush_codec(AVCodecContext *avctx, MediaCodecDecContex
|
||||
return AVERROR_EXTERNAL;
|
||||
}
|
||||
|
||||
s->first_buffer = 0;
|
||||
s->first_buffer_at = av_gettime();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -468,7 +465,6 @@ int ff_mediacodec_dec_init(AVCodecContext *avctx, MediaCodecDecContext *s,
|
||||
AV_PIX_FMT_NONE,
|
||||
};
|
||||
|
||||
s->first_buffer_at = av_gettime();
|
||||
s->refcount = 1;
|
||||
|
||||
pix_fmt = ff_get_format(avctx, pix_fmts);
|
||||
@ -645,10 +641,6 @@ int ff_mediacodec_dec_decode(AVCodecContext *avctx, MediaCodecDecContext *s,
|
||||
if (index >= 0) {
|
||||
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"
|
||||
" offset=%" PRIi32 " size=%" PRIi32 " ts=%" PRIi64
|
||||
" flags=%" PRIu32 "\n", index, info.offset, info.size,
|
||||
|
@ -61,9 +61,6 @@ typedef struct MediaCodecDecContext {
|
||||
|
||||
uint64_t dequeued_buffer_nb;
|
||||
|
||||
int first_buffer;
|
||||
double first_buffer_at;
|
||||
|
||||
} MediaCodecDecContext;
|
||||
|
||||
int ff_mediacodec_dec_init(AVCodecContext *avctx,
|
||||
|
Loading…
Reference in New Issue
Block a user