From 82ebe0c7968262c7e27700b93bc58be0d7228458 Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Mon, 6 Jul 2020 02:29:59 +0200 Subject: pthread_frame: introduce a codec callback to update the user-facing context --- libavcodec/codec.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libavcodec/codec.h') diff --git a/libavcodec/codec.h b/libavcodec/codec.h index 50a22f6e3c..de050b2815 100644 --- a/libavcodec/codec.h +++ b/libavcodec/codec.h @@ -258,6 +258,11 @@ typedef struct AVCodec { * dst and src will (rarely) point to the same context, in which case memcpy should be skipped. */ int (*update_thread_context)(struct AVCodecContext *dst, const struct AVCodecContext *src); + + /** + * Copy variables back to the user-facing context + */ + int (*update_thread_context_for_user)(struct AVCodecContext *dst, const struct AVCodecContext *src); /** @} */ /** -- cgit v1.2.3