[FFmpeg-devel] [PATCH] Handle initial RTMP chunk size packet

Stephan Soller stephan.soller at helionweb.de
Sun Apr 13 11:54:16 CEST 2014

Hi there,

The attached patch handles RTMP chunk size packets that are send before 
the first invoke packet. This allows ffmpeg to receive RTMP streams from 
streaming software like Open Broadcaster Software 
(https://obsproject.com/). OBS first increases the chunk size from 128 
bytes to 4096 bytes before sending the first invoke packet. Without the 
patch ffmpeg segfaults.

See ticket #2911 for the details of the bug (setup to replicate it, 
ffmpeg log and gdb output).

Tested with ffmpeg v2.2.1 and current master 

Happy programming
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-avformat-rtmpproto-Added-handling-of-an-initial-RTMP.patch
Type: text/x-patch
Size: 1290 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140413/2296f5f5/attachment.bin>

More information about the ffmpeg-devel mailing list