Re: [FFmpeg-devel] [PATCH 3/6] pthread_frame: call update_context_from_user() after acquiring lock.

2017-03-29 Thread wm4
On Wed, 29 Mar 2017 10:12:21 -0400 "Ronald S. Bultje" wrote: > Otherwise the thread may still be in the middle of decoding a previous > frame, which would effectively trigger a race condition on any field > concurrently read and written. > --- > libavcodec/pthread_frame.c |

[FFmpeg-devel] [PATCH 3/6] pthread_frame: call update_context_from_user() after acquiring lock.

2017-03-29 Thread Ronald S. Bultje
Otherwise the thread may still be in the middle of decoding a previous frame, which would effectively trigger a race condition on any field concurrently read and written. --- libavcodec/pthread_frame.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git