Commit e1676107 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/rscc: Fix constant

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 5a123f14
......@@ -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) {
......
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