comparison rtsp.c @ 4182:313d987dd2b4 libavformat

Increase buffer size for RTP packet data because some ASF streams use a manual, non-standard blocksize which is bigger than RTP_MAX_PACKET_LENGTH. See "[PATCH] RTSP-MS 4/15: blocksize detection" thread on mailinglist.
author rbultje
date Fri, 09 Jan 2009 01:30:14 +0000
parents 619845a9bab3
children 023976c45ae1
comparison
equal deleted inserted replaced
4181:17a8a3696ee1 4182:313d987dd2b4
1297 AVPacket *pkt) 1297 AVPacket *pkt)
1298 { 1298 {
1299 RTSPState *rt = s->priv_data; 1299 RTSPState *rt = s->priv_data;
1300 RTSPStream *rtsp_st; 1300 RTSPStream *rtsp_st;
1301 int ret, len; 1301 int ret, len;
1302 uint8_t buf[RTP_MAX_PACKET_LENGTH]; 1302 uint8_t buf[10 * RTP_MAX_PACKET_LENGTH];
1303 1303
1304 if (rt->server_type == RTSP_SERVER_REAL) { 1304 if (rt->server_type == RTSP_SERVER_REAL) {
1305 int i; 1305 int i;
1306 RTSPHeader reply1, *reply = &reply1; 1306 RTSPHeader reply1, *reply = &reply1;
1307 enum AVDiscard cache[MAX_STREAMS]; 1307 enum AVDiscard cache[MAX_STREAMS];