diff options
author | Paul B Mahol <onemda@gmail.com> | 2016-09-06 13:28:59 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2016-09-07 15:56:13 +0200 |
commit | 7a258ef97e54a499b1ab8ad0244dbb8c48b4fd51 (patch) | |
tree | 611cca4ea4549869f6942c99ad772a7dbae0e39f /libavcodec | |
parent | b7e78c75cc254bebf880129ed3d9e57ec014fdd3 (diff) | |
download | ffmpeg-7a258ef97e54a499b1ab8ad0244dbb8c48b4fd51.tar.gz |
avcodec/gif: don't honor transparency if palette changed
It generally does not work.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/gif.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/gif.c b/libavcodec/gif.c index 6af1f4abe2..d9c99d52cf 100644 --- a/libavcodec/gif.c +++ b/libavcodec/gif.c @@ -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 */ |