[FFmpeg-devel] [PATCH, v3] lavc/pthread_frame: update context in child thread in multi-thread mode

Carl Eugen Hoyos ceffmpeg at gmail.com
Thu Jun 27 15:32:02 EEST 2019


Am Do., 27. Juni 2019 um 13:56 Uhr schrieb Linjie Fu <linjie.fu at intel.com>:

>  libavcodec/internal.h      |  7 +++++++
>  libavcodec/pthread_frame.c | 21 ++++++++++++++++++---
>  2 files changed, 25 insertions(+), 3 deletions(-)
>
> diff --git a/libavcodec/internal.h b/libavcodec/internal.h
> index 5096ffa..a85ffff 100644
> --- a/libavcodec/internal.h
> +++ b/libavcodec/internal.h
> @@ -162,6 +162,13 @@ typedef struct AVCodecInternal {
>
>      void *thread_ctx;
>
> +    /**
> +     * User thread AVCodecContext pointer and
> +     * context mutex
> +     */
> +    void *user_avctx;

Sorry if this was already answered:
Why is this not an AVCodecContext* ?

Carl Eugen


More information about the ffmpeg-devel mailing list