mirror of https://github.com/FFmpeg/FFmpeg.git
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>pull/353/head^2
parent
1cbea3f9ca
commit
9837f5a643
1 changed files with 1 additions and 1 deletions
Loading…
Reference in new issue