[FFmpeg-trac] #1981(avformat:closed): mpegtsraw open of multicast stream may hang

FFmpeg trac at avcodec.org
Mon Jul 2 19:20:55 EEST 2018


#1981: mpegtsraw open of multicast stream may hang
-------------------------------------+-------------------------------------
             Reporter:  Krieger      |                    Owner:
                 Type:  defect       |                   Status:  closed
             Priority:  normal       |                Component:  avformat
              Version:  git-master   |               Resolution:
             Keywords:  mpegtsraw    |  needs_more_info
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by jhowe321):

 Replying to [comment:2 cehoyos]:
 > Please reopen if you can provide a backtrace.

 Here's one on Windows, multiple branches. Occurs < 5% of the time. Cannot
 reproduce on Linux.
 {{{
         avformat-57.dll!ff_poll(pollfd * fds, unsigned long numfds, int
 timeout) Line 314       C       Symbols loaded.
         avformat-57.dll!ff_network_wait_fd(int fd, int write) Line 79   C
 Symbols loaded.
         avformat-57.dll!udp_read(URLContext * h, unsigned char * buf, int
 size) Line 1069       C       Symbols loaded.
         avformat-57.dll!retry_transfer_wrapper(URLContext * h, unsigned
 char * buf, int size, int size_min, int(*)(URLContext *, unsigned char *,
 int) transfer_func) Line 376  C       Symbols loaded.
         avformat-57.dll!ffurl_read(URLContext * h, unsigned char * buf,
 int size) Line 410      C       Symbols loaded.
         avformat-57.dll!fill_buffer(AVIOContext * s) Line 573   C
 Symbols loaded.
         avformat-57.dll!avio_read(AVIOContext * s, unsigned char * buf,
 int size) Line 668      C       Symbols loaded.
         avformat-57.dll!read_packet(AVFormatContext * s, unsigned char *
 buf, int raw_packet_size, const unsigned char * * data) Line 2454      C
 Symbols loaded.
         avformat-57.dll!mpegts_read_header(AVFormatContext * s) Line 2700
 C       Symbols loaded.
         avformat-57.dll!avformat_open_input(AVFormatContext * * ps, const
 char * filename, AVInputFormat * fmt, AVDictionary * * options) Line 595
 C       Symbols loaded.
 }}}

 libavformat/os_support.c
 {{{
     if (timeout < 0) {
         rc = select(n, &read_set, &write_set, &exception_set, NULL);
     } else {
         struct timeval tv;
         tv.tv_sec  = timeout / 1000;
         tv.tv_usec = 1000 * (timeout % 1000);
     ---> rc         = select(n, &read_set, &write_set, &exception_set,
 &tv);
     }
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/1981#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list