On 2013-02-14 19:35:15 +0100, Luca Barbato wrote:
> On 2/13/13 7:51 PM, Anton Khirnov wrote:
> > @@ -1502,6 +1502,8 @@ av_cold int ff_rv34_decode_init(AVCodecContext *avctx)
> >      if(!intra_vlcs[0].cbppattern[0].bits)
> >          rv34_init_tables();
> >  
> > +    avctx->internal->allocate_progress = 1;
> > +
> >      return 0;
> >  }
> >  
> > @@ -1519,6 +1521,9 @@ int ff_rv34_decode_init_thread_copy(AVCodecContext 
> > *avctx)
> >          if ((err = rv34_decoder_alloc(r)) < 0)
> >              return err;
> >      }
> > +
> > +    avctx->internal->allocate_progress = 1;
> > +
> 
> why you need to set it in both?

no need to set it in ff_rv34_decode_init_thread_copy, frame_thread_init
copies it from the first inited context.

Janne
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to