mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2025-02-10 22:33:14 +00:00
avcodec/gif: don't honor transparency if palette changed
It generally does not work. Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
b7e78c75cc
commit
7a258ef97e
@ -83,7 +83,7 @@ static int gif_image_write_image(AVCodecContext *avctx,
|
||||
GIFContext *s = avctx->priv_data;
|
||||
int len = 0, height = avctx->height, width = avctx->width, x, y;
|
||||
int x_start = 0, y_start = 0, trans = s->transparent_index;
|
||||
int honor_transparency = (s->flags & GF_TRANSDIFF) && s->last_frame;
|
||||
int honor_transparency = (s->flags & GF_TRANSDIFF) && s->last_frame && !palette;
|
||||
const uint8_t *ptr;
|
||||
|
||||
/* Crop image */
|
||||
|
Loading…
x
Reference in New Issue
Block a user