[FFmpeg-trac] #6455(avformat:new): Zero length packets in UDP stream cause EOF

FFmpeg trac at avcodec.org
Mon Jun 12 20:38:33 EEST 2017


#6455: Zero length packets in UDP stream cause EOF
----------------------------------+--------------------------------------
             Reporter:  danman    |                     Type:  defect
               Status:  new       |                 Priority:  important
            Component:  avformat  |                  Version:  git-master
             Keywords:            |               Blocked By:
             Blocking:            |  Reproduced by developer:  0
Analyzed by developer:  0         |
----------------------------------+--------------------------------------
 Summary of the bug:
 ffmpeg treats UDP packet with zero length payload as EOF and exits.
 Example output:
 ffmpeg -i udp://@239.255.42.42:5004 out.mp4
 ffmpeg version N-86395-g497a4b554c-static http://johnvansickle.com/ffmpeg/
 Copyright (c) 2000-2017 the FFmpeg developers
   built with gcc 5.4.1 (Debian 5.4.1-11) 20170519
   configuration: --enable-gpl --enable-version3 --enable-static --disable-
 debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio
 --cc=gcc-5 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-
 gray --enable-libass --enable-libfreetype --enable-libfribidi --enable-
 libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-
 libopenjpeg --enable-libopus --enable-librtmp --enable-libsoxr --enable-
 libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc
 --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264
 --enable-libx265 --enable-libxvid --enable-libzimg
   libavutil      55. 63.100 / 55. 63.100
   libavcodec     57. 96.101 / 57. 96.101
   libavformat    57. 72.101 / 57. 72.101
   libavdevice    57.  7.100 / 57.  7.100
   libavfilter     6. 91.100 /  6. 91.100
   libswscale      4.  7.101 /  4.  7.101
   libswresample   2.  8.100 /  2.  8.100
   libpostproc    54.  6.100 / 54.  6.100
 udp://@239.255.42.42:5004: could not find codec parameters

 How to reproduce:
 {{{
 # tcpreplay -i lo -l 0 lkv.pcap
 # route add 239.255.42.42 dev lo
 % ffmpeg -i udp://@239.255.42.42:5004 out.mp4
 ffmpeg version N-86395-g497a4b554c-static http://johnvansickle.com/ffmpeg/
 Copyright (c) 2000-2017 the FFmpeg developers
   built with gcc 5.4.1 (Debian 5.4.1-11) 20170519
 }}}
 Patches should be submitted to the ffmpeg-devel mailing list and not this
 bug tracker.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/6455>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list