[FFmpeg-cvslog] rtsp: Interpret the text media type as AVMEDIA_TYPE_DATA
Martin Storsjö
git at videolan.org
Tue Feb 24 21:44:24 CET 2015
ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Mon Feb 23 17:16:32 2015 +0200| [26524e358147aade6e9dd18fff42d61b966bbc70] | committer: Martin Storsjö
rtsp: Interpret the text media type as AVMEDIA_TYPE_DATA
Signed-off-by: Martin Storsjö <martin at martin.st>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=26524e358147aade6e9dd18fff42d61b966bbc70
---
libavformat/rtsp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index 77f6eb2..20e380a 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -393,7 +393,7 @@ static void sdp_parse_line(AVFormatContext *s, SDPParseState *s1,
codec_type = AVMEDIA_TYPE_AUDIO;
} else if (!strcmp(st_type, "video")) {
codec_type = AVMEDIA_TYPE_VIDEO;
- } else if (!strcmp(st_type, "application")) {
+ } else if (!strcmp(st_type, "application") || !strcmp(st_type, "text")) {
codec_type = AVMEDIA_TYPE_DATA;
}
if (codec_type == AVMEDIA_TYPE_UNKNOWN || !(rt->media_type_mask & (1 << codec_type))) {
More information about the ffmpeg-cvslog
mailing list