changeset 5296:a280af9ae028 libavformat

Accept RTMP packets with one-byte header
author kostya
date Sun, 18 Oct 2009 06:58:00 +0000
parents 08ec48911f20
children 53688cb639b0
files rtmppkt.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
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);