fprintf(stderr, "format not supported\n");
av_log(avctx, AV_LOG_ERROR, "format not supported\n");
static int encode_init(AVCodecContext *avctx){    FFV1Context *s = avctx->priv_data;    int i;    common_init(avctx);     s->version=0;    s->ac= avctx->coder_type;        s->plane_count=2;    for(i=0; i<256; i++){        s->quant_table[0][i]=           quant11[i];        s->quant_table[1][i]=        11*quant11[i];        if(avctx->context_model==0){            s->quant_table[2][i]=     11*11*quant11[i];            s->quant_table[3][i]=            s->quant_table[4][i]=0;        }else{            s->quant_table[2][i]=     11*11*quant5 [i];            s->quant_table[3][i]=   5*11*11*quant5 [i];            s->quant_table[4][i]= 5*5*11*11*quant5 [i];        }    }    for(i=0; i<s->plane_count; i++){        PlaneContext * const p= &s->plane[i];                       if(avctx->context_model==0){            p->context_count= (11*11*11+1)/2;        }else{                    p->context_count= (11*11*5*5*5+1)/2;        }        if(s->ac){            if(!p->state) p->state= av_malloc(CONTEXT_SIZE*p->context_count*sizeof(uint8_t));        }else{            if(!p->vlc_state) p->vlc_state= av_malloc(p->context_count*sizeof(VlcState));        }    }    avctx->coded_frame= &s->picture;    switch(avctx->pix_fmt){    case PIX_FMT_YUV444P:    case PIX_FMT_YUV422P:    case PIX_FMT_YUV420P:    case PIX_FMT_YUV411P:    case PIX_FMT_YUV410P:        s->colorspace= 0;        break;    case PIX_FMT_RGBA32:        s->colorspace= 1;        break;    default:        fprintf(stderr, "format not supported\n");        return -1;    }    avcodec_get_chroma_sub_sample(avctx->pix_fmt, &s->chroma_h_shift, &s->chroma_v_shift);    s->picture_number=0;        return 0;}