From fa1ee9602632668c332ce9377641c779b820d636 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 31 Oct 2016 23:01:09 +0100 Subject: [PATCH] avcodec/rscc: Fix constant Signed-off-by: Michael Niedermayer (cherry picked from commit e167610794db8f2202f9dbe013c54f6b34d7f7a0) Signed-off-by: Michael Niedermayer --- libavcodec/rscc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/rscc.c b/libavcodec/rscc.c index 7eb8776886..d01f05c022 100644 --- a/libavcodec/rscc.c +++ b/libavcodec/rscc.c @@ -314,7 +314,7 @@ static int rscc_decode_frame(AVCodecContext *avctx, void *data, const uint8_t *pal = av_packet_get_side_data(avpkt, AV_PKT_DATA_PALETTE, &size); - if (pal && size == AV_PKT_DATA_PALETTE) { + if (pal && size == AVPALETTE_SIZE) { frame->palette_has_changed = 1; memcpy(ctx->pal, pal, AVPALETTE_SIZE); } else if (pal) {