aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/rtsp.c
diff options
context:
space:
mode:
authorJordi Ortiz <nenjordi@gmail.com>2012-05-04 17:50:31 +0200
committerLuca Barbato <lu_zero@gentoo.org>2012-05-08 10:18:35 -0700
commitfcd0298c05c28429ef8508c924288131c87830b5 (patch)
tree4cc4d5339bb829fd18418e2360b0c231f90c1af4 /libavformat/rtsp.c
parentb2e495afa8e23b46536e25e892157104437f4020 (diff)
downloadffmpeg-fcd0298c05c28429ef8508c924288131c87830b5.tar.gz
rtsp: Add content-type message header parsing
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r--libavformat/rtsp.c3
1 files changed, 3 insertions, 0 deletions
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));
}
}