X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fsgienc.c;h=1fc6dcb244fc29d9b6acb1438a8d16d9caa7f29c;hb=0a23067ab41326dfa1da41d18923ea8547a51ff5;hp=eafb655b46507810ee7d98942ca04195d42a0e07;hpb=e16665bf72d226b2c87c76a677414b8ef7720d7e;p=ffmpeg diff --git a/libavcodec/sgienc.c b/libavcodec/sgienc.c index eafb655b465..1fc6dcb244f 100644 --- a/libavcodec/sgienc.c +++ b/libavcodec/sgienc.c @@ -52,7 +52,7 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf, unsigned char *orig_buf = buf, *end_buf = buf + buf_size; *p = *(AVFrame*)data; - p->pict_type = FF_I_TYPE; + p->pict_type = AV_PICTURE_TYPE_I; p->key_frame = 1; width = avctx->width; @@ -160,13 +160,12 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf, } AVCodec ff_sgi_encoder = { - "sgi", - AVMEDIA_TYPE_VIDEO, - CODEC_ID_SGI, - sizeof(SgiContext), - encode_init, - encode_frame, - NULL, + .name = "sgi", + .type = AVMEDIA_TYPE_VIDEO, + .id = CODEC_ID_SGI, + .priv_data_size = sizeof(SgiContext), + .init = encode_init, + .encode = encode_frame, .pix_fmts= (const enum PixelFormat[]){PIX_FMT_RGB24, PIX_FMT_RGBA, PIX_FMT_GRAY8, PIX_FMT_NONE}, .long_name= NULL_IF_CONFIG_SMALL("SGI image"), };