[FFmpeg-devel] [PATCH 4/7] ffv1: fix uninitialized use context_count when version < 1.

Michael Niedermayer michaelni at gmx.at
Thu Sep 1 02:55:37 CEST 2011


On Thu, Sep 01, 2011 at 02:30:21AM +0200, Clément Bœsch wrote:
> ---
>  libavcodec/ffv1.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/libavcodec/ffv1.c b/libavcodec/ffv1.c
> index 8d9dc72..d2192ed 100644
> --- a/libavcodec/ffv1.c
> +++ b/libavcodec/ffv1.c
> @@ -1611,6 +1611,7 @@ static int read_header(FFV1Context *f){
>                  return -1;
>          }
>      }else{
> +        context_count = 0;

how can this be used uninitialized ?

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

Freedom in capitalist society always remains about the same as it was in
ancient Greek republics: Freedom for slave owners. -- Vladimir Lenin
-------------- 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/20110901/6591433a/attachment.asc>


More information about the ffmpeg-devel mailing list