|
|
@ -267,7 +267,7 @@ static int gif_image_write_image(AVCodecContext *avctx, |
|
|
|
int bcid = -1, honor_transparency = (s->flags & GF_TRANSDIFF) && s->last_frame && !palette; |
|
|
|
int bcid = -1, honor_transparency = (s->flags & GF_TRANSDIFF) && s->last_frame && !palette; |
|
|
|
const uint8_t *ptr; |
|
|
|
const uint8_t *ptr; |
|
|
|
|
|
|
|
|
|
|
|
if (!s->image && avctx->frame_number && is_image_translucent(avctx, buf, linesize)) { |
|
|
|
if (!s->image && is_image_translucent(avctx, buf, linesize)) { |
|
|
|
gif_crop_translucent(avctx, buf, linesize, &width, &height, &x_start, &y_start); |
|
|
|
gif_crop_translucent(avctx, buf, linesize, &width, &height, &x_start, &y_start); |
|
|
|
honor_transparency = 0; |
|
|
|
honor_transparency = 0; |
|
|
|
disposal = GCE_DISPOSAL_BACKGROUND; |
|
|
|
disposal = GCE_DISPOSAL_BACKGROUND; |
|
|
|