diff rtmppkt.c @ 5296:a280af9ae028 libavformat

Accept RTMP packets with one-byte header
author kostya
date Sun, 18 Oct 2009 06:58:00 +0000
parents cc34279f0fab
children 53688cb639b0
line wrap: on
line diff
--- a/rtmppkt.c	Sun Oct 18 06:54:04 2009 +0000
+++ b/rtmppkt.c	Sun Oct 18 06:58:00 2009 +0000
@@ -87,8 +87,7 @@
 
     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);