diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2020-07-06 02:29:59 +0200 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2021-04-14 20:05:16 -0300 |
commit | 82ebe0c7968262c7e27700b93bc58be0d7228458 (patch) | |
tree | eaca397a68bc88de5cfe2f885bdc9487a99bfa49 /libavcodec/codec.h | |
parent | 67ed3cddf1d8c663c65f5cb0d442a7cb0aa06538 (diff) | |
download | ffmpeg-82ebe0c7968262c7e27700b93bc58be0d7228458.tar.gz |
pthread_frame: introduce a codec callback to update the user-facing context
Diffstat (limited to 'libavcodec/codec.h')
-rw-r--r-- | libavcodec/codec.h | 5 |
1 files changed, 5 insertions, 0 deletions
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); /** @} */ /** |