static av_cold int raw_init_encoder(AVCodecContext *avctx)
{
- avctx->coded_frame = (AVFrame *)avctx->priv_data;
+ avctx->coded_frame = avctx->priv_data;
avctx->coded_frame->pict_type = AV_PICTURE_TYPE_I;
avctx->coded_frame->key_frame = 1;
avctx->bits_per_coded_sample = av_get_bits_per_pixel(&av_pix_fmt_descriptors[avctx->pix_fmt]);
.priv_data_size = sizeof(AVFrame),
.init = raw_init_encoder,
.encode2 = raw_encode,
- .long_name = NULL_IF_CONFIG_SMALL("raw video"),
+ .long_name = NULL_IF_CONFIG_SMALL("raw video"),
};