if(s->avctx->get_buffer == avcodec_default_get_buffer){
if(pic->type == FF_BUFFER_TYPE_INTERNAL){
static void free_picture(MpegEncContext *s, Picture *pic){    int i;        av_freep(&pic->mb_var);    av_freep(&pic->mc_mb_var);    av_freep(&pic->mb_mean);    av_freep(&pic->mbskip_table);    av_freep(&pic->qscale_table);        if(s->avctx->get_buffer == avcodec_default_get_buffer){        for(i=0; i<4; i++){            av_freep(&pic->base[i]);            pic->data[i]= NULL;        }        av_freep(&pic->opaque);    }}