mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-09-10 17:41:09 +02:00
rtsp: Interpret the text media type as AVMEDIA_TYPE_DATA
Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
ce52869c22
commit
26524e3581
@ -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))) {
|
||||
|
Loading…
Reference in New Issue
Block a user