From 4b7c10ae842c5e3c57e833d8a97f124e337b6d52 Mon Sep 17 00:00:00 2001 From: zhangmeng <775834166@qq.com> Date: 星期一, 04 十一月 2019 13:50:57 +0800 Subject: [PATCH] remove deps --- csrc/thirdparty/ffmpeg/include/libavcodec/mediacodec.h | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/csrc/thirdparty/ffmpeg/include/libavcodec/mediacodec.h b/csrc/thirdparty/ffmpeg/include/libavcodec/mediacodec.h index 5606d24..4c8545d 100644 --- a/csrc/thirdparty/ffmpeg/include/libavcodec/mediacodec.h +++ b/csrc/thirdparty/ffmpeg/include/libavcodec/mediacodec.h @@ -85,4 +85,17 @@ */ int av_mediacodec_release_buffer(AVMediaCodecBuffer *buffer, int render); +/** + * Release a MediaCodec buffer and render it at the given time to the surface + * that is associated with the decoder. The timestamp must be within one second + * of the current java/lang/System#nanoTime() (which is implemented using + * CLOCK_MONOTONIC on Android). See the Android MediaCodec documentation + * of android/media/MediaCodec#releaseOutputBuffer(int,long) for more details. + * + * @param buffer the buffer to render + * @param time timestamp in nanoseconds of when to render the buffer + * @return 0 on success, < 0 otherwise + */ +int av_mediacodec_render_buffer_at_time(AVMediaCodecBuffer *buffer, int64_t time); + #endif /* AVCODEC_MEDIACODEC_H */ -- Gitblit v1.8.0