Skip to content

Commit

Permalink
Merge pull request #1 from Giphy/CR-1266
Browse files Browse the repository at this point in the history
CR-1266: Fix infinite loop bug on transparent optimization
  • Loading branch information
jagraff authored Nov 29, 2018
2 parents 8f5485b + 5eaaf8e commit a35311a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libavcodec/gif.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ static int gif_image_write_translucent(AVCodecContext *avctx,
DONE_CROP_LEFT:

// crop right
while (x_end < w) {
while (x_end > x_start) {
int i;
for (i=y_start; i<y_end; ++i) {
if (buf[linesize*i+x_end] != trans) {
Expand Down

0 comments on commit a35311a

Please sign in to comment.