#include "avcodec.h"
#include "codec_internal.h"
-#include "internal.h"
+#include "decode.h"
static av_cold int sgirle_decode_init(AVCodecContext *avctx)
{
return ret;
frame->pict_type = AV_PICTURE_TYPE_I;
- frame->key_frame = 1;
+ frame->flags |= AV_FRAME_FLAG_KEY;
*got_frame = 1;
const FFCodec ff_sgirle_decoder = {
.p.name = "sgirle",
- .p.long_name = NULL_IF_CONFIG_SMALL("Silicon Graphics RLE 8-bit video"),
+ CODEC_LONG_NAME("Silicon Graphics RLE 8-bit video"),
.p.type = AVMEDIA_TYPE_VIDEO,
.p.id = AV_CODEC_ID_SGIRLE,
.init = sgirle_decode_init,
FF_CODEC_DECODE_CB(sgirle_decode_frame),
.p.capabilities = AV_CODEC_CAP_DR1,
- .caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
};