*/
/**
- * @file cyuv.c
+ * @file libavcodec/cyuv.c
* Creative YUV (CYUV) Video Decoder.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <unistd.h>
#include "avcodec.h"
#include "dsputil.h"
static int cyuv_decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
- const uint8_t *buf, int buf_size)
+ AVPacket *avpkt)
{
+ const uint8_t *buf = avpkt->data;
+ int buf_size = avpkt->size;
CyuvDecodeContext *s=avctx->priv_data;
unsigned char *y_plane;
return buf_size;
}
-static av_cold int cyuv_decode_end(AVCodecContext *avctx)
-{
-/* CyuvDecodeContext *s = avctx->priv_data;*/
-
- return 0;
-}
-
AVCodec cyuv_decoder = {
"cyuv",
CODEC_TYPE_VIDEO,
sizeof(CyuvDecodeContext),
cyuv_decode_init,
NULL,
- cyuv_decode_end,
+ NULL,
cyuv_decode_frame,
CODEC_CAP_DR1,
NULL,
- .long_name = "Creative YUV (CYUV)",
+ .long_name = NULL_IF_CONFIG_SMALL("Creative YUV (CYUV)"),
};