On Thu, 3 May 2012, Samuel Pitoiset wrote:

---
libavformat/rtmpproto.c |    8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
index 9cdb639..d6be546 100644
--- a/libavformat/rtmpproto.c
+++ b/libavformat/rtmpproto.c
@@ -66,6 +66,7 @@ typedef struct RTMPContext {
    int           chunk_size;                 ///< size of the chunks RTMP 
packets are divided into
    int           is_input;                   ///< input/output flag
    char          *playpath;                  ///< stream identifier to play (with 
possible "mp4:" prefix)
+    int           live;                       ///< 0: recorded, -1: live, -2: 
both
    char          *app;                       ///< name of application
    ClientState   state;                      ///< current state
    int           main_channel_id;            ///< an additional channel ID 
which is used for some invocations
@@ -287,7 +288,7 @@ static void gen_play(URLContext *s, RTMPContext *rt)

    av_log(s, AV_LOG_DEBUG, "Sending play command for '%s'\n", rt->playpath);
    ff_rtmp_packet_create(&pkt, RTMP_VIDEO_CHANNEL, RTMP_PT_INVOKE, 0,
-                          20 + strlen(rt->playpath));
+                          32 + strlen(rt->playpath));

This should be 29, otherwise we send 3 undefined bytes giving weird issues (it took me a while to realize what was wrong)...

Other than that, looks good to me, tested it to work as intended.

// Martin
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to