Re: [FFmpeg-devel] [PATCH] vp9: fix a race in exporting encoding parameters

2021-02-24 Thread James Almer
On 2/24/2021 6:33 AM, Anton Khirnov wrote: Modifying shared state after ff_thread_finish_setup() is not allowed, so set the encoding parameters directly on the output frame. Does this also ensure the side data will be present in show_existing_frame frames? This means the "ret == 0" case when

[FFmpeg-devel] [PATCH] vp9: fix a race in exporting encoding parameters

2021-02-24 Thread Anton Khirnov
Modifying shared state after ff_thread_finish_setup() is not allowed, so set the encoding parameters directly on the output frame. Found-by: James Almer --- libavcodec/vp9.c | 18 ++ 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/libavcodec/vp9.c b/libavcodec/vp9.