diff mbox

[FFmpeg-devel,7/7] Fix for detecting opaque correctly.

Message ID 20171002172439.65628-8-bjorn@giphy.com
State New
Headers show

Commit Message

Bjorn Roche Oct. 2, 2017, 5:24 p.m. UTC
From: Bjorn Roche <bjorn@xowave.com>

---
 libavcodec/gif.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/libavcodec/gif.c b/libavcodec/gif.c
index 3ced6d4d45..758e16b83d 100644
--- a/libavcodec/gif.c
+++ b/libavcodec/gif.c
@@ -80,7 +80,7 @@  static int is_image_translucent(AVCodecContext *avctx,
                                 const uint8_t *buf, const int linesize)
 {
     GIFContext *s = avctx->priv_data;
-    uint8_t trans = s->transparent_index;
+    int trans = s->transparent_index;
     int p;
     const int m = avctx->width * avctx->height ;