[FFmpeg-cvslog] avs: silence "may be used uninitialized" warnings
Michael Niedermayer
git at videolan.org
Sat Dec 29 03:13:33 CET 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Dec 29 02:42:30 2012 +0100| [76e65a1b731e28d8382d500c3a7740b65df9f7b2] | committer: Michael Niedermayer
avs: silence "may be used uninitialized" warnings
We initialize the struct to 0 to also ensure any actual use of
the pointers in it will not lead to security issues.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=76e65a1b731e28d8382d500c3a7740b65df9f7b2
---
libavcodec/avs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/avs.c b/libavcodec/avs.c
index 0881d74..39ce7da 100644
--- a/libavcodec/avs.c
+++ b/libavcodec/avs.c
@@ -57,7 +57,7 @@ avs_decode_frame(AVCodecContext * avctx,
int i, j, x, y, stride, vect_w = 3, vect_h = 3;
AvsVideoSubType sub_type;
AvsBlockType type;
- GetBitContext change_map;
+ GetBitContext change_map = {0}; //init to silence warning
if (avctx->reget_buffer(avctx, p)) {
av_log(avctx, AV_LOG_ERROR, "reget_buffer() failed\n");
More information about the ffmpeg-cvslog
mailing list