[FFmpeg-devel] [PATCH v1] avformat/rtsp: fix https://trac.ffmpeg.org/ticket/7517

Guo, Yejun yejun.guo at intel.com
Thu Mar 4 10:06:27 EET 2021



> -----Original Message-----
> From: ffmpeg-devel <ffmpeg-devel-bounces at ffmpeg.org> On Behalf Of
> gaojiangjie at live.com
> Sent: 2021年3月4日 15:39
> To: ffmpeg-devel at ffmpeg.org
> Cc: Jiangjie Gao <gaojiangjie at live.com>
> Subject: [FFmpeg-devel] [PATCH v1] avformat/rtsp: fix
> https://trac.ffmpeg.org/ticket/7517
> 
> From: Jiangjie Gao <gaojiangjie at live.com>
> 
> Signed-off-by: Jiangjie Gao <gaojiangjie at live.com>
> ---
>  libavformat/rtsp.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
> index 9a2933346e..29ee0b317f 100644
> --- a/libavformat/rtsp.c
> +++ b/libavformat/rtsp.c
> @@ -2510,8 +2510,9 @@ static int rtp_read_header(AVFormatContext *s)
>      if (!ff_network_init())
>          return AVERROR(EIO);
> 
> +    AVDictionary *opts = map_to_opts(rt);

there will be build warning, we need to declare variable at the beginning.
also see warning at https://patchwork.ffmpeg.org/project/ffmpeg/list/?series=3458 


More information about the ffmpeg-devel mailing list