*/
/**
- * @file smc.c
+ * @file libavcodec/smc.c
* QT SMC Video Decoder by Mike Melanson (melanson@pcisys.net)
* For more information about the SMC format, visit:
* http://www.pcisys.net/~melanson/codecs/
#include <string.h>
#include <unistd.h>
+#include "libavutil/intreadwrite.h"
#include "avcodec.h"
#define CPAIR 2
static int smc_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;
SmcContext *s = avctx->priv_data;
s->buf = buf;
smc_decode_end,
smc_decode_frame,
CODEC_CAP_DR1,
- .long_name = "QuickTime Graphics (SMC)",
+ .long_name = NULL_IF_CONFIG_SMALL("QuickTime Graphics (SMC)"),
};