1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

rtsp: Add content-type message header parsing

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
Jordi Ortiz 2012-05-04 17:50:31 +02:00 committed by Luca Barbato
parent b2e495afa8
commit fcd0298c05
2 changed files with 8 additions and 0 deletions

View File

@ -870,6 +870,9 @@ void ff_rtsp_parse_line(RTSPMessageHeader *reply, const char *buf,
} else if (av_stristart(p, "x-Accept-Dynamic-Rate:", &p) && rt) {
p += strspn(p, SPACE_CHARS);
rt->accept_dynamic_rate = atoi(p);
} else if (av_stristart(p, "Content-Type:", &p)) {
p += strspn(p, SPACE_CHARS);
av_strlcpy(reply->content_type, p, sizeof(reply->content_type));
}
}

View File

@ -171,6 +171,11 @@ typedef struct RTSPMessageHeader {
* returned
*/
char reason[256];
/**
* Content type header
*/
char content_type[64];
} RTSPMessageHeader;
/**