#include <stdint.h>
#include "libavutil/imgutils.h"
+
#include "bytestream.h"
#include "avcodec.h"
-#include "get_bits.h"
#include "internal.h"
-typedef struct {
+typedef struct IffContext {
AVFrame *frame;
int planesize;
uint8_t * planebuf;
if ((err = av_image_check_size(avctx->width, avctx->height, 0, avctx)))
return err;
s->planesize = FFALIGN(avctx->width, 16) >> 3; // Align plane size in bits to word-boundary
- s->planebuf = av_malloc(s->planesize + FF_INPUT_BUFFER_PADDING_SIZE);
+ s->planebuf = av_malloc(s->planesize + AV_INPUT_BUFFER_PADDING_SIZE);
if (!s->planebuf)
return AVERROR(ENOMEM);
.init = decode_init,
.close = decode_end,
.decode = decode_frame_ilbm,
- .capabilities = CODEC_CAP_DR1,
+ .capabilities = AV_CODEC_CAP_DR1,
};
AVCodec ff_iff_byterun1_decoder = {
.init = decode_init,
.close = decode_end,
.decode = decode_frame_byterun1,
- .capabilities = CODEC_CAP_DR1,
+ .capabilities = AV_CODEC_CAP_DR1,
};