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.

Originally committed as revision 16502 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Ronald S. Bultje 16 years ago
parent 5ce0043367
commit e49906c321
  1. 2
      libavformat/rtsp.c

@ -1299,7 +1299,7 @@ static int rtsp_read_packet(AVFormatContext *s,
RTSPState *rt = s->priv_data; RTSPState *rt = s->priv_data;
RTSPStream *rtsp_st; RTSPStream *rtsp_st;
int ret, len; int ret, len;
uint8_t buf[RTP_MAX_PACKET_LENGTH]; uint8_t buf[10 * RTP_MAX_PACKET_LENGTH];
if (rt->server_type == RTSP_SERVER_REAL) { if (rt->server_type == RTSP_SERVER_REAL) {
int i; int i;

Loading…
Cancel
Save