summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
6877537)
Allow $ as character anywhere within normal RTSP replies - both
within the lines, and as the first character of RTSP header lines.
(The existing old comment indicated that an inline packet could
start at any line within a RTSP reply header, but that doesn't
sound valid to me, and I'm not sure if the existing code
handled that correctly either.)
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
unsigned char ch;
const char *p;
int ret, content_length, line_count = 0, request = 0;
unsigned char ch;
const char *p;
int ret, content_length, line_count = 0, request = 0;
unsigned char *content = NULL;
start:
unsigned char *content = NULL;
start:
return AVERROR_EOF;
if (ch == '\n')
break;
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
if (return_on_interleaved_data) {
return 1;
} else
av_log(s, AV_LOG_TRACE, "line='%s'\n", buf);
av_log(s, AV_LOG_TRACE, "line='%s'\n", buf);