Module: libav
Branch: release/12
Commit: 3155e05f6b69ad0100b6f858429fb3bf5370e480

Author:    Martin Storsjö <mar...@martin.st>
Committer: Anton Khirnov <an...@khirnov.net>
Date:      Thu Oct 13 16:17:11 2016 +0300

rtmpproto: Send chunk size on the network channel

This makes sure that e.g. Adobe FME actually reacts to it. As long
as the value we've been sending is the default one (128), the bug
hasn't been noticed.

Signed-off-by: Martin Storsjö <mar...@martin.st>
(cherry picked from commit 8b5e0d17e70400eaf5dc3845b5c1df8b2b88d830)
Signed-off-by: Anton Khirnov <an...@khirnov.net>

---

 libavformat/rtmpproto.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
index 8817744..4107b46 100644
--- a/libavformat/rtmpproto.c
+++ b/libavformat/rtmpproto.c
@@ -492,7 +492,7 @@ static int read_connect(URLContext *s, RTMPContext *rt)
         return ret;
 
     // Chunk size
-    if ((ret = ff_rtmp_packet_create(&pkt, RTMP_SYSTEM_CHANNEL,
+    if ((ret = ff_rtmp_packet_create(&pkt, RTMP_NETWORK_CHANNEL,
                                      RTMP_PT_CHUNK_SIZE, 0, 4)) < 0)
         return ret;
 

_______________________________________________
libav-commits mailing list
libav-commits@libav.org
https://lists.libav.org/mailman/listinfo/libav-commits

Reply via email to