[FFmpeg-devel] [PATCH 10/11] rtsp: fix compiler warning for uninitialized variables

Michael Niedermayer michaelni at gmx.at
Sat Dec 31 17:02:58 CET 2011


On Fri, Dec 30, 2011 at 09:08:07PM +0100, Jean First wrote:
> 
> Signed-off-by: Jean First <jeanfirst at gmail.com>
> ---
>  libavformat/rtsp.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
> index 5d6db1b..d32f49e 100644
> --- a/libavformat/rtsp.c
> +++ b/libavformat/rtsp.c
> @@ -1103,7 +1103,7 @@ int ff_rtsp_make_setup_request(AVFormatContext *s, const char *host, int port,
>                                int lower_transport, const char *real_challenge)
>  {
>      RTSPState *rt = s->priv_data;
> -    int rtx, j, i, err, interleave = 0;
> +    int rtx = 0, j, i, err, interleave = 0;
>      RTSPStream *rtsp_st;
>      RTSPMessageHeader reply1, *reply = &reply1;
>      char cmd[2048];

i think its ok, maybe ronald or martin want to comment too though ?

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The bravest are surely those who have the clearest vision
of what is before them, glory and danger alike, and yet
notwithstanding go out to meet it. -- Thucydides
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20111231/1f996fb9/attachment.asc>


More information about the ffmpeg-devel mailing list