diff options
author | Martin Storsjö <martin@martin.st> | 2013-10-03 11:09:56 +0400 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2013-10-04 10:25:05 +0400 |
commit | 4d6d70292e91a7ef027824d731b6b6570ceabf2f (patch) | |
tree | e4f0224541415d74fc9e111f52fedcad1d91b54d /libavformat/rtmpproto.c | |
parent | a6b361325f2bfc8d9d4e5f761d6c1a07b209c4fb (diff) |
rtmpproto: Pass the 'live' parameter in the right unit
The current magic numbers passed are values in seconds, while the
parameter itself should be passed over the wire in milliseconds.
This makes (some/all?) live streams from Red5 work correctly, that
previously returned StreamNotFound even with "-rtmp_live live". After
this commit, the default 'any' also works on these streams.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtmpproto.c')
-rw-r--r-- | libavformat/rtmpproto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c index 52dc45f752..02fbcc420f 100644 --- a/libavformat/rtmpproto.c +++ b/libavformat/rtmpproto.c @@ -706,7 +706,7 @@ static int gen_play(URLContext *s, RTMPContext *rt) ff_amf_write_number(&p, ++rt->nb_invokes); ff_amf_write_null(&p); ff_amf_write_string(&p, rt->playpath); - ff_amf_write_number(&p, rt->live); + ff_amf_write_number(&p, rt->live * 1000); return rtmp_send_packet(rt, &pkt, 1); } |