avcodec/rscc: Fix constant
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 31 Oct 2016 22:01:09 +0000 (23:01 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 17 Nov 2016 11:47:40 +0000 (12:47 +0100)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit e167610794db8f2202f9dbe013c54f6b34d7f7a0)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/rscc.c

index 7eb8776..d01f05c 100644 (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) {