[FFmpeg-trac] #915(avformat:new): UDP Protocol : seg fault on closing

FFmpeg trac at avcodec.org
Thu Jan 12 21:57:12 CET 2012


#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


More information about the FFmpeg-trac mailing list