context->pic.pict_type= FF_I_TYPE; context->pic.key_frame= 1; avctx->coded_frame= &context->pic;
static int raw_init(AVCodecContext *avctx){    RawVideoContext *context = avctx->priv_data;    if (avctx->codec_tag) {	    avctx->pix_fmt = findPixelFormat(avctx->codec_tag);    }	context->length = avpicture_get_size(avctx->pix_fmt, avctx->width, avctx->height);	context->buffer = av_malloc(context->length);	context->p      = context->buffer;    if (! context->buffer) {        return -1;    }    return 0;}