Browse Source

avcodec/rscc: Fix constant

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit e167610794)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.2.1
Michael Niedermayer 9 years ago
parent
commit
fa1ee96026
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/rscc.c

+ 1
- 1
libavcodec/rscc.c 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) {


Loading…
Cancel
Save