OSDN Git Service

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>
Mon, 31 Oct 2016 22:20:31 +0000 (23:20 +0100)
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) {