#include "libavutil/pixdesc.h"
#include "avcodec.h"
#include "bytestream.h"
+#include "internal.h"
#include "xface.h"
static int pop_integer(BigInt *b, const ProbRange *pranges)
}
static int xface_decode_frame(AVCodecContext *avctx,
- void *data, int *data_size,
+ void *data, int *got_frame,
AVPacket *avpkt)
{
XFaceContext *xface = avctx->priv_data;
if (xface->frame.data[0])
avctx->release_buffer(avctx, &xface->frame);
xface->frame.data[0] = NULL;
- if ((ret = avctx->get_buffer(avctx, &xface->frame)) < 0)
+ if ((ret = ff_get_buffer(avctx, &xface->frame)) < 0)
return ret;
xface->frame.reference = 0;
}
}
- *data_size = sizeof(AVFrame);
+ *got_frame = 1;
*(AVFrame*)data = xface->frame;
return avpkt->size;