[FFmpeg-devel] [PATCH] lavfi: fix race when func rets holder is NULL

Clément Bœsch u at pkh.me
Wed Mar 29 00:48:43 EEST 2017


On Tue, Mar 28, 2017 at 11:39:49PM +0200, Michael Niedermayer wrote:
> On Tue, Mar 28, 2017 at 05:59:29PM +0200, Clément Bœsch wrote:
> > From: Clément Bœsch <cboesch at gopro.com>
> > 
> > If ret is NULL, a dummy common holder is created to hold *all* the
> > parallel function returns, which gets written concurrently. This commit
> > simplify the whole logic by simply not writing to that holder when not
> > set.
> > ---
> >  libavfilter/pthread.c | 17 ++++++-----------
> >  1 file changed, 6 insertions(+), 11 deletions(-)
> 
> should be ok
> 
> thx
> 

applied, thanks

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170328/2ea7628f/attachment.sig>


More information about the ffmpeg-devel mailing list