#915: UDP Protocol : seg fault on closing ----------------------------------+-------------------------------------- Reporter: lbrulet | Type: defect Status: new | Priority: normal Component: avformat | Version: git-master Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | ----------------------------------+-------------------------------------- Calling avformat_close_input on a UDP stream (Mpeg TS for example), is sometimes resulting in a segfault. After analysis, I think the problem is in libavformat/udp.c : the thread circular_buffer_thread is not joined in udp_close. Then, sometimes, the circular_buffer_task routine is still executing with a freed context.
A simple patch proposal is attached. -- Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/915> FFmpeg <http://ffmpeg.org> FFmpeg issue tracker _______________________________________________ FFmpeg-trac mailing list FFmpeg-trac@avcodec.org http://avcodec.org/mailman/listinfo/ffmpeg-trac