[FFmpeg-devel] [PATCH] fix for transparencies in animated gifs (requires feedback)

Carl Eugen Hoyos ceffmpeg at gmail.com
Tue Oct 24 23:31:13 EEST 2017


2017-10-24 18:40 GMT+02:00 Bjorn Roche <bjorn at giphy.com>:

[...]

The patch adds two warnings here on compilation of gif.c,
they should be fixed at some point:

libavcodec/gif.c:164:5: warning: ISO C90 forbids mixed declarations
and code [-Wdeclaration-after-statement]
     uint8_t *frame_disposal = av_packet_new_side_data(pkt,
AV_PKT_DATA_GIF_FRAME_DISPOSAL, 1);
     ^~~~~~~
libavcodec/gif.c: In function ‘gif_image_write_translucent’:
libavcodec/gif.c:333:5: warning: ISO C90 forbids mixed declarations
and code [-Wdeclaration-after-statement]
     uint8_t *frame_disposal = av_packet_new_side_data(pkt,
AV_PKT_DATA_GIF_FRAME_DISPOSAL, 1);
     ^~~~~~~

Carl Eugen


More information about the ffmpeg-devel mailing list