aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-02-23 17:24:15 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-02-23 17:24:15 +0100
commitda8ef5ac2f1b14f4fe34db72af5d5f8b3c8e2ff9 (patch)
treefa18f465de3eba198ada9dd9708981bbd988768e
parent02ac3398eb52679301028c2fd3ebad1b6261b4da (diff)
downloadffmpeg-da8ef5ac2f1b14f4fe34db72af5d5f8b3c8e2ff9.tar.gz
rtmpproto: increase APP_MAX_LENGTH
Fixes second part of Ticket2292 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/rtmpproto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
index fa661ee552..598122a229 100644
--- a/libavformat/rtmpproto.c
+++ b/libavformat/rtmpproto.c
@@ -50,7 +50,7 @@
//#define DEBUG
-#define APP_MAX_LENGTH 128
+#define APP_MAX_LENGTH 1024
#define PLAYPATH_MAX_LENGTH 256
#define TCURL_MAX_LENGTH 512
#define FLASHVER_MAX_LENGTH 64
@@ -312,7 +312,7 @@ static int gen_connect(URLContext *s, RTMPContext *rt)
int ret;
if ((ret = ff_rtmp_packet_create(&pkt, RTMP_SYSTEM_CHANNEL, RTMP_PT_INVOKE,
- 0, 4096)) < 0)
+ 0, 4096 + APP_MAX_LENGTH)) < 0)
return ret;
p = pkt.data;