[FFmpeg-devel] [PATCH] 'UDP' protocol (in upper case) in SDP m= section was parsed correctly
Carl Eugen Hoyos
ceffmpeg at gmail.com
Thu Jan 31 01:24:56 EET 2019
2019-01-30 16:57 GMT+01:00, Yannick Poirier <yannick.poirier at inverto.tv>:
> ---
> libavformat/rtsp.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
> index ceb770a3a4..4899e4e790 100644
> --- a/libavformat/rtsp.c
> +++ b/libavformat/rtsp.c
> @@ -480,7 +480,7 @@ static void sdp_parse_line(AVFormatContext *s,
> SDPParseState *s1,
> rtsp_st->sdp_port = atoi(buf1);
>
> get_word(buf1, sizeof(buf1), &p); /* protocol */
> - if (!strcmp(buf1, "udp"))
> + if (!av_strcasecmp(buf1, "udp"))
Is there an rfc or similar that supports this?
In any case, the commit message can be improved.
Carl Eugen
More information about the ffmpeg-devel
mailing list