mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
gifdec: use transparent instead of background color index
Wrong code was commited in 64f4fb75c4.
This commit is contained in:
parent
b84871b8eb
commit
522cb6abf2
1 changed files with 1 additions and 1 deletions
|
|
@ -202,7 +202,7 @@ static int gif_read_image(GifState *s)
|
|||
s->gce_w = width; s->gce_h = height;
|
||||
|
||||
if (s->gce_disposal == GCE_DISPOSAL_BACKGROUND) {
|
||||
if (s->background_color_index >= 0)
|
||||
if (s->transparent_color_index >= 0)
|
||||
s->stored_bg_color = s->trans_color;
|
||||
else
|
||||
s->stored_bg_color = s->bg_color;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue