Commit c6a11714 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/fic: Avoid some magic numbers related to cursors

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent ba97d75a
...@@ -82,6 +82,7 @@ static const uint8_t fic_qmat_lq[64] = { ...@@ -82,6 +82,7 @@ static const uint8_t fic_qmat_lq[64] = {
static const uint8_t fic_header[7] = { 0, 0, 1, 'F', 'I', 'C', 'V' }; static const uint8_t fic_header[7] = { 0, 0, 1, 'F', 'I', 'C', 'V' };
#define FIC_HEADER_SIZE 27 #define FIC_HEADER_SIZE 27
#define CURSOR_OFFSET 59
static av_always_inline void fic_idct(int16_t *blk, int step, int shift, int rnd) static av_always_inline void fic_idct(int16_t *blk, int step, int shift, int rnd)
{ {
...@@ -416,7 +417,7 @@ static int fic_decode_frame(AVCodecContext *avctx, void *data, ...@@ -416,7 +417,7 @@ static int fic_decode_frame(AVCodecContext *avctx, void *data,
/* Draw cursor. */ /* Draw cursor. */
if (!skip_cursor) { if (!skip_cursor) {
memcpy(ctx->cursor_buf, src + 59, 32 * 32 * 4); memcpy(ctx->cursor_buf, src + CURSOR_OFFSET, sizeof(ctx->cursor_buf));
fic_draw_cursor(avctx, cur_x, cur_y); fic_draw_cursor(avctx, cur_x, cur_y);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment