From fcd0298c05c28429ef8508c924288131c87830b5 Mon Sep 17 00:00:00 2001 From: Jordi Ortiz Date: Fri, 4 May 2012 17:50:31 +0200 Subject: rtsp: Add content-type message header parsing Signed-off-by: Luca Barbato --- libavformat/rtsp.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libavformat/rtsp.c') diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 2ad2c4dcf2..31eb4befd6 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -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)); } } -- cgit v1.2.3