You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
rtmpproto: increase APP_MAX_LENGTH
Fixes second part of Ticket2292 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -50,7 +50,7 @@
|
|||||||
|
|
||||||
//#define DEBUG
|
//#define DEBUG
|
||||||
|
|
||||||
#define APP_MAX_LENGTH 128
|
#define APP_MAX_LENGTH 1024
|
||||||
#define PLAYPATH_MAX_LENGTH 256
|
#define PLAYPATH_MAX_LENGTH 256
|
||||||
#define TCURL_MAX_LENGTH 512
|
#define TCURL_MAX_LENGTH 512
|
||||||
#define FLASHVER_MAX_LENGTH 64
|
#define FLASHVER_MAX_LENGTH 64
|
||||||
@@ -312,7 +312,7 @@ static int gen_connect(URLContext *s, RTMPContext *rt)
|
|||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if ((ret = ff_rtmp_packet_create(&pkt, RTMP_SYSTEM_CHANNEL, RTMP_PT_INVOKE,
|
if ((ret = ff_rtmp_packet_create(&pkt, RTMP_SYSTEM_CHANNEL, RTMP_PT_INVOKE,
|
||||||
0, 4096)) < 0)
|
0, 4096 + APP_MAX_LENGTH)) < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
p = pkt.data;
|
p = pkt.data;
|
||||||
|
Reference in New Issue
Block a user