[FFmpeg-devel] [PATCH 02/11] lavfi: fix compiler warning for uninitialized variables

Stefano Sabatini stefasab at gmail.com
Sat Dec 31 11:53:27 CET 2011


On date Friday 2011-12-30 21:07:59 +0100, Jean First encoded:
> Signed-off-by: Jean First <jeanfirst at gmail.com>
> ---
>  libavdevice/lavfi.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/libavdevice/lavfi.c b/libavdevice/lavfi.c
> index 4f91a4b..de3731a 100644
> --- a/libavdevice/lavfi.c
> +++ b/libavdevice/lavfi.c
> @@ -270,7 +270,8 @@ static int lavfi_read_packet(AVFormatContext *avctx, AVPacket *pkt)
>      int stream_idx, min_pts_sink_idx = 0;
>      AVFilterBufferRef *ref;
>      AVPicture pict;
> -    int ret, i, size;
> +    int ret, i;
> +    int size = 0;
>  
>      /* iterate through all the graph sinks. Select the sink with the
>       * minimum PTS */

Pushed, thanks.
-- 
FFmpeg = Frightening & Fiendish Minimalistic Powerful Experimenting Gangster


More information about the ffmpeg-devel mailing list