[FFmpeg-cvslog] r20269 - trunk/libavformat/rtmppkt.c

kostya subversion
Sun Oct 18 08:58:00 CEST 2009


Author: kostya
Date: Sun Oct 18 08:58:00 2009
New Revision: 20269

Log:
Accept RTMP packets with one-byte header

Modified:
   trunk/libavformat/rtmppkt.c

Modified: trunk/libavformat/rtmppkt.c
==============================================================================
--- trunk/libavformat/rtmppkt.c	Sun Oct 18 08:54:04 2009	(r20268)
+++ trunk/libavformat/rtmppkt.c	Sun Oct 18 08:58:00 2009	(r20269)
@@ -87,8 +87,7 @@ int ff_rtmp_packet_read(URLContext *h, R
 
     hdr >>= 6;
     if (hdr == RTMP_PS_ONEBYTE) {
-        //todo
-        return -1;
+        timestamp = prev_pkt[channel_id].timestamp;
     } else {
         if (url_read_complete(h, buf, 3) != 3)
             return AVERROR(EIO);



More information about the ffmpeg-cvslog mailing list