VBDecContext * const c = avctx->priv_data;
c->avctx = avctx;
- avctx->pix_fmt = PIX_FMT_PAL8;
+ avctx->pix_fmt = AV_PIX_FMT_PAL8;
c->frame = av_mallocz(avctx->width * avctx->height);
c->prev_frame = av_mallocz(avctx->width * avctx->height);
AVCodec ff_vb_decoder = {
.name = "vb",
.type = AVMEDIA_TYPE_VIDEO,
- .id = CODEC_ID_VB,
+ .id = AV_CODEC_ID_VB,
.priv_data_size = sizeof(VBDecContext),
.init = decode_init,
.close = decode_end,
.decode = decode_frame,
- .long_name = NULL_IF_CONFIG_SMALL("Beam Software VB"),
+ .long_name = NULL_IF_CONFIG_SMALL("Beam Software VB"),
};
-