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;
_______________________________________________
FFmpeg-soc mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-soc

Reply via email to