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

Michael Niedermayer michael at niedermayer.cc
Wed Mar 29 00:39:49 EEST 2017


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

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The greatest way to live with honor in this world is to be what we pretend
to be. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20170328/e4841066/attachment.sig>


More information about the ffmpeg-devel mailing list