1
0
mirror of https://github.com/mpv-player/mpv synced 2025-02-05 14:42:24 +00:00

increase buffer size, "CSeq: %u" has a worst case of 17 (fix 1.18 from xine, see http://xine.cvs.sourceforge.net/xine/xine-lib/src/input/librtsp/rtsp.c?r1=1.17&r2=1.18)

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18857 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
ben 2006-06-29 21:50:49 +00:00
parent c223351501
commit 46dc121052

View File

@ -293,9 +293,9 @@ static void rtsp_send_request(rtsp_t *s, const char *type, const char *what) {
static void rtsp_schedule_standard(rtsp_t *s) {
char tmp[16];
char tmp[17];
snprintf(tmp, 16, "CSeq: %u", s->cseq);
snprintf(tmp, 17, "CSeq: %u", s->cseq);
rtsp_schedule_field(s, tmp);
if (s->session) {
@ -548,7 +548,7 @@ int rtsp_read_data(rtsp_t *s, char *buffer, unsigned int size) {
}
/* let's make the server happy */
rtsp_put(s, "RTSP/1.0 451 Parameter Not Understood");
rest=malloc(sizeof(char)*16);
rest=malloc(sizeof(char)*17);
sprintf(rest,"CSeq: %u", seq);
rtsp_put(s, rest);
rtsp_put(s, "");