[FFmpeg-trac] #7052(avformat:new): rtmp_write dead loop

FFmpeg trac at avcodec.org
Wed Jul 25 17:18:59 EEST 2018

#7052: rtmp_write dead loop
             Reporter:  palich2000   |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  important    |                Component:  avformat
              Version:  git-master   |               Resolution:
             Keywords:  rtmp         |               Blocked By:
  deadlock                           |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |

Comment (by wingrime):

 Have same defect, digging in code gives clear suspect


 With this commit, retry_transfer_wrapper don't consider 0 as EOS signal,
 commit change this behaviour in some parts of code but not in librtmp.

 So retry_transfer_wrapper do endless retry and there we have dead loop

 Reverting first diff from commit fixed issue for me, but brokes something
 else. Clear fix requires librtmp wrapper that change 0 to EOS. Other
 option - change librtmp

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

More information about the FFmpeg-trac mailing list