Skip to content

Commit

Permalink
rtsp: Interpret the text media type as AVMEDIA_TYPE_DATA
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Storsjö <[email protected]>
  • Loading branch information
mstorsjo committed Feb 24, 2015
1 parent ce52869 commit 26524e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libavformat/rtsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))) {
Expand Down

0 comments on commit 26524e3

Please sign in to comment.