Fixes decoding of https://samples.ffmpeg.org/V-codecs/KMVC/LOGO2.AVI
Reviewed-by: Tomas Härdin <tjoppen@acc.umu.se>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
if ((ret = ff_get_buffer(avctx, frame, 0)) < 0)
return ret;
+ frame->palette_has_changed = ff_copy_palette(ctx->pal, avpkt, avctx);
+
header = bytestream2_get_byte(&ctx->g);
/* blocksize 127 is really palette change event */
}
}
- if (ff_copy_palette(ctx->pal, avpkt, avctx))
- frame->palette_has_changed = 1;
-
if (ctx->setpal) {
ctx->setpal = 0;
frame->palette_has_changed = 1;