p_image->p_filter->fmt_out.video = p_image->p_enc->fmt_in.video;
}
- p_pic->i_refcount++; /* pf_video_filter() will call pf_release() */
+ if( p_pic->pf_release )
+ p_pic->i_refcount++;
p_tmp_pic =
p_image->p_filter->pf_video_filter( p_image->p_filter, p_pic );
p_image->p_filter->fmt_out.video = *p_fmt_out;
}
- p_pic->i_refcount++; /* pf_video_filter() will call pf_release() */
+ if( p_pic->pf_release )
+ p_pic->i_refcount++;
p_pif = p_image->p_filter->pf_video_filter( p_image->p_filter, p_pic );
if( p_fmt_in->i_chroma == p_fmt_out->i_chroma &&
p_image->p_filter->fmt_out.video = *p_fmt;
}
- p_pic->i_refcount++; /* pf_video_filter() will call pf_release() */
+ if( p_pic->pf_release )
+ p_pic->i_refcount++;
return p_image->p_filter->pf_video_filter( p_image->p_filter, p_pic );
}