[FFmpeg-devel] [PATCH] Log a warning when receiving HTTP error codes

Martin Storsjö martin
Fri Jul 16 17:39:38 CEST 2010


On Fri, 16 Jul 2010, Luca Barbato wrote:

> On 07/16/2010 04:36 PM, Ronald S. Bultje wrote:
> > If you could, that'd be great.
> > 
> > Ronald
> 
> That's an option

> diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
> index 9316f3c..e0ca264 100644
> --- a/libavformat/rtsp.c
> +++ b/libavformat/rtsp.c
> @@ -823,6 +823,7 @@ int ff_rtsp_read_reply(AVFormatContext *s, RTSPMessageHeader *reply,
>              get_word(buf1, sizeof(buf1), &p);
>              get_word(buf1, sizeof(buf1), &p);
>              reply->status_code = atoi(buf1);
> +            av_strlcpy(reply->reason, p, sizeof(rt->last_reply));
>          } else {

Umm, shouldn't it be sizeof(reply->reason)?

Except for that, looks quite ok.

// Martin



More information about the ffmpeg-devel mailing list