|
|
@@ -1128,6 +1128,7 @@ int ff_rtsp_read_reply(AVFormatContext *s, RTSPMessageHeader *reply, |
|
|
|
unsigned char ch; |
|
|
|
const char *p; |
|
|
|
int ret, content_length, line_count = 0, request = 0; |
|
|
|
int first_line = 1; |
|
|
|
unsigned char *content = NULL; |
|
|
|
|
|
|
|
start: |
|
|
@@ -1147,8 +1148,7 @@ start: |
|
|
|
return AVERROR_EOF; |
|
|
|
if (ch == '\n') |
|
|
|
break; |
|
|
|
if (ch == '$') { |
|
|
|
/* XXX: only parse it if first char on line ? */ |
|
|
|
if (ch == '$' && first_line && q == buf) { |
|
|
|
if (return_on_interleaved_data) { |
|
|
|
return 1; |
|
|
|
} else |
|
|
@@ -1159,6 +1159,7 @@ start: |
|
|
|
} |
|
|
|
} |
|
|
|
*q = '\0'; |
|
|
|
first_line = 0; |
|
|
|
|
|
|
|
av_log(s, AV_LOG_TRACE, "line='%s'\n", buf); |
|
|
|
|
|
|
|