diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2009-10-18 06:58:00 +0000 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2009-10-18 06:58:00 +0000 |
commit | 8f648b74c348e866e3d24b038258919341b87a9e (patch) | |
tree | 018e589b8d8d7f9449aac36553f514ba91470d84 | |
parent | f836fa17060f34c09d5fd8d80b62cd7a771f0ab2 (diff) | |
download | ffmpeg-8f648b74c348e866e3d24b038258919341b87a9e.tar.gz |
Accept RTMP packets with one-byte header
Originally committed as revision 20269 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/rtmppkt.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/rtmppkt.c b/libavformat/rtmppkt.c index af416a4f1f..4ca12a0041 100644 --- a/libavformat/rtmppkt.c +++ b/libavformat/rtmppkt.c @@ -87,8 +87,7 @@ int ff_rtmp_packet_read(URLContext *h, RTMPPacket *p, 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); |