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

kostya subversion at mplayerhq.hu
Thu Jun 18 06:14:08 CEST 2009


Author: kostya
Date: Thu Jun 18 06:14:08 2009
New Revision: 4473

Log:
Set extra field for RTMP packet with full header

Modified:
   rtmp/rtmppkt.c

Modified: rtmp/rtmppkt.c
==============================================================================
--- rtmp/rtmppkt.c	Thu Jun 18 05:51:25 2009	(r4472)
+++ rtmp/rtmppkt.c	Thu Jun 18 06:14:08 2009	(r4473)
@@ -114,6 +114,8 @@ int rtmp_packet_read(AVFormatContext *ct
         }
     }
     rtmp_packet_create(p, stream_id, type, type, data_size);
+    if (hdr == RTMP_PS_TWELVEBYTES)
+        p->extra = AV_RL32(buf);
     while (data_size > 0) {
         int toread = FFMIN(data_size, hist->chunk_size[stream_id]);
         int r;


More information about the FFmpeg-soc mailing list