diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2015-10-07 02:49:34 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-10-07 02:49:34 +0200 |
commit | e96ecaf053d8d606e38ae2e56ba6cf58875021b0 (patch) | |
tree | 6f408e3f3e32727f672b83e59f73304d20fb2770 /libavcodec/pngenc.c | |
parent | f4585e666fc9b8308019bd21e6f8576c7b953c42 (diff) |
avcodec/pngenc: Initialize fctl_chunk to 0
The structure is copied around and that triggers warnings if it is uninitialized
Fixes CID1322360
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/pngenc.c')
-rw-r--r-- | libavcodec/pngenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/pngenc.c b/libavcodec/pngenc.c index f6ad830cd9..0bae2acfb9 100644 --- a/libavcodec/pngenc.c +++ b/libavcodec/pngenc.c @@ -817,7 +817,7 @@ static int encode_apng(AVCodecContext *avctx, AVPacket *pkt, int ret; int enc_row_size; size_t max_packet_size; - APNGFctlChunk fctl_chunk; + APNGFctlChunk fctl_chunk = {0}; if (pict && avctx->codec_id == AV_CODEC_ID_APNG && s->color_type == PNG_COLOR_TYPE_PALETTE) { uint32_t checksum = ~av_crc(av_crc_get_table(AV_CRC_32_IEEE_LE), ~0U, pict->data[1], 256 * sizeof(uint32_t)); |