[FFmpeg-devel] [PATCH 3/7] dvdsubdec: fix uninitialized colormap warning.
Clément Bœsch
ubitux at gmail.com
Thu Sep 1 02:30:20 CEST 2011
---
libavcodec/dvdsubdec.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavcodec/dvdsubdec.c b/libavcodec/dvdsubdec.c
index 1c3d75e..60bd86f 100644
--- a/libavcodec/dvdsubdec.c
+++ b/libavcodec/dvdsubdec.c
@@ -174,7 +174,7 @@ static int decode_dvd_subtitles(AVSubtitle *sub_header,
int cmd_pos, pos, cmd, x1, y1, x2, y2, offset1, offset2, next_cmd_pos;
int big_offsets, offset_size, is_8bit = 0;
const uint8_t *yuv_palette = 0;
- uint8_t colormap[4], alpha[256];
+ uint8_t colormap[4] = {0}, alpha[256];
int date;
int i;
int is_menu = 0;
--
1.7.6.1
More information about the ffmpeg-devel
mailing list