diff options
author | Tian Qi <tianqi@kuaishou.com> | 2020-08-28 09:13:02 +0800 |
---|---|---|
committer | Rick Kern <kernrj@gmail.com> | 2020-09-28 21:46:40 -0400 |
commit | 9837f5a64322e89f825a99f14c1a0d27b17b183c (patch) | |
tree | 23033c89b79a7df49e39a68d92f0a4801a19f868 /libavfilter/vf_swaprect.c | |
parent | 1cbea3f9caa8d8641f749219a0c207320908778f (diff) | |
download | ffmpeg-9837f5a64322e89f825a99f14c1a0d27b17b183c.tar.gz |
avcodec/videotoolboxenc: move pthread_cond_signal after add buffer to the queue
In the VT encoding insertion by FFmpeg,
and vtenc_q_push is callback to add the encoded data
to the singly linked list group in VTEncContext,
and consumers are notified to fetch it.
However, because it first informs consumers of pthread_cond_signal,
and then inserts the data into the tail,
there is a multi-thread safety hazard.
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
Signed-off-by: Rick Kern <kernrj@gmail.com>
Diffstat (limited to 'libavfilter/vf_swaprect.c')
0 files changed, 0 insertions, 0 deletions