diff options
author | Martin Storsjö <martin@martin.st> | 2015-02-23 17:16:32 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2015-02-24 16:19:37 +0200 |
commit | 26524e358147aade6e9dd18fff42d61b966bbc70 (patch) | |
tree | b95325ccdcba91fc0c2ccaa2fa56110f1d9c2704 /libavformat/rtsp.c | |
parent | ce52869c22738ad584995d48103ce3aa2301736b (diff) | |
download | ffmpeg-26524e358147aade6e9dd18fff42d61b966bbc70.tar.gz |
rtsp: Interpret the text media type as AVMEDIA_TYPE_DATA
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r-- | libavformat/rtsp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 77f6eb2501..20e380a8f8 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))) { |