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

Clément Bœsch ubitux at gmail.com
Thu Sep 1 03:02:22 CEST 2011


On Thu, Sep 01, 2011 at 02:55:37AM +0200, Michael Niedermayer wrote:
> 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 ?
> 

Oups, my bad, discarded. I didn't realize the two f->version checks were
actually totally opposed.

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110901/dd5a5ed6/attachment.asc>


More information about the ffmpeg-devel mailing list