[FFmpeg-soc] [soc]: r4501 - rtmp/rtmppkt.c

kostya subversion at mplayerhq.hu
Mon Jun 22 11:21:01 CEST 2009


Author: kostya
Date: Mon Jun 22 11:21:00 2009
New Revision: 4501

Log:
Disable sending packets with short header, not all RTMP servers like them.

Modified:
   rtmp/rtmppkt.c

Modified: rtmp/rtmppkt.c
==============================================================================
--- rtmp/rtmppkt.c	Mon Jun 22 11:19:36 2009	(r4500)
+++ rtmp/rtmppkt.c	Mon Jun 22 11:21:00 2009	(r4501)
@@ -154,8 +154,8 @@ int rtmp_packet_write(AVFormatContext *c
     int mode = RTMP_PS_TWELVEBYTES;
     int off = 0;
 
-    if (pkt->type != RTMP_PT_INVOKE)
-        mode = RTMP_PS_EIGHTBYTES;
+//    if (pkt->type != RTMP_PT_INVOKE)
+//        mode = RTMP_PS_EIGHTBYTES;
     bytestream_put_byte(&p, pkt->stream_id | (mode << 6));
     if (mode != RTMP_PS_ONEBYTE) {
         bytestream_put_be24(&p, pkt->timestamp);


More information about the FFmpeg-soc mailing list