typedef struct KmvcContext {
AVCodecContext *avctx;
+ GetByteContext g;
+ uint8_t *cur, *prev;
int setpal;
int palsize;
uint32_t pal[MAX_PALSIZE];
- uint8_t *cur, *prev;
uint8_t frm0[320 * 200], frm1[320 * 200];
- GetByteContext g;
} KmvcContext;
typedef struct BitBuf {
}
/* flip buffers */
- if (ctx->cur == ctx->frm0) {
- ctx->cur = ctx->frm1;
- ctx->prev = ctx->frm0;
- } else {
- ctx->cur = ctx->frm0;
- ctx->prev = ctx->frm1;
- }
+ FFSWAP(uint8_t *, ctx->cur, ctx->prev);
*got_frame = 1;
return 0;
}
-AVCodec ff_kmvc_decoder = {
+const AVCodec ff_kmvc_decoder = {
.name = "kmvc",
.long_name = NULL_IF_CONFIG_SMALL("Karl Morton's video codec"),
.type = AVMEDIA_TYPE_VIDEO,