#include "avcodec.h"
#include "bytestream.h"
+#include "internal.h"
#include "libavutil/opt.h"
typedef struct {
return 0;
}
-static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
+static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
AVPacket *avpkt)
{
FRWUContext *s = avctx->priv_data;
}
pic->reference = 0;
- if ((ret = avctx->get_buffer(avctx, pic)) < 0) {
+ if ((ret = ff_get_buffer(avctx, pic)) < 0) {
av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
return ret;
}
buf += field_size - min_field_size;
}
- *data_size = sizeof(AVFrame);
+ *got_frame = 1;
*(AVFrame*)data = *pic;
return avpkt->size;