#include "avcodec.h"
#include "bytestream.h"
+#include "internal.h"
#include "j2k.h"
#include "libavutil/common.h"
if (s->picture.data[0])
s->avctx->release_buffer(s->avctx, &s->picture);
- if ((ret = s->avctx->get_buffer(s->avctx, &s->picture)) < 0)
+ if ((ret = ff_get_buffer(s->avctx, &s->picture)) < 0)
return ret;
s->picture.pict_type = AV_PICTURE_TYPE_I;
}
static int decode_frame(AVCodecContext *avctx,
- void *data, int *data_size,
+ void *data, int *got_frame,
AVPacket *avpkt)
{
J2kDecoderContext *s = avctx->priv_data;
cleanup(s);
- *data_size = sizeof(AVPicture);
+ *got_frame = 1;
*picture = s->picture;
return bytestream2_tell(&s->g);