[MPlayer-dev-eng] postprocessing filters
    Jindrich Makovicka 
    makovick at kmlinux.fjfi.cvut.cz
       
    Thu Mar 24 12:11:36 CET 2005
    
    
  
Nagendra Rao wrote:
 > hai
[...]
 > int postprocesscall(AVCodecContext *avctx, AVFrame *src )
[...]
 >   vf_priv_s *vf=av_malloc(sizeof(struct vf_priv_s));
 >
 >   vf->context=NULL;
[...]
 >     if(vf->context) pp_free_context(vf->context);
 >     vf->context= pp_get_context(avctx->width,avctx->height, flags);
This code will also leak memory horribly, as the vf & pp context is 
allocated repeatedly for each frame.
Regards,
-- 
Jindrich Makovicka
    
    
More information about the MPlayer-dev-eng
mailing list