avcodec/rscc: Fix constant

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Michael Niedermayer 2016-10-31 23:01:09 +01:00
parent 5a123f1424
commit e167610794
1 changed files with 1 additions and 1 deletions

View File

@ -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) {