]> git.sesse.net Git - ffmpeg/commitdiff
rtsp: Interpret the text media type as AVMEDIA_TYPE_DATA
authorMartin Storsjö <martin@martin.st>
Mon, 23 Feb 2015 15:16:32 +0000 (17:16 +0200)
committerMartin Storsjö <martin@martin.st>
Tue, 24 Feb 2015 14:19:37 +0000 (16:19 +0200)
Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/rtsp.c

index 77f6eb2501d4919acd0d23621748f77d6e6e7e64..20e380a8f8cbd8b7327e9f8994b7c1639ab602e0 100644 (file)
@@ -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))) {