if(avctx->get_buffer == avcodec_default_get_buffer){ for(i=0; i<4; i++){ av_freep(&s->picture.base[i]); s->picture.data[i]= NULL; } av_freep(&s->picture.opaque); }
avcodec_default_free_buffers(avctx);
static int decode_end(AVCodecContext *avctx){    HYuvContext *s = avctx->priv_data;    int i;        for(i=0; i<3; i++){        free_vlc(&s->vlc[i]);    }    if(avctx->get_buffer == avcodec_default_get_buffer){        for(i=0; i<4; i++){            av_freep(&s->picture.base[i]);            s->picture.data[i]= NULL;        }        av_freep(&s->picture.opaque);    }    return 0;}