summaryrefslogtreecommitdiff
path: root/libavcodec/avs.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-12-29 02:42:30 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-12-29 03:07:45 +0100
commit76e65a1b731e28d8382d500c3a7740b65df9f7b2 (patch)
treeb8402c05aa07500d4d7c36a4664a544bf1011567 /libavcodec/avs.c
parent3f8ee30e63192774cc5759d605769b5d57ba0470 (diff)
downloadffmpeg-76e65a1b731e28d8382d500c3a7740b65df9f7b2.tar.gz
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@gmx.at>
Diffstat (limited to 'libavcodec/avs.c')
-rw-r--r--libavcodec/avs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/avs.c b/libavcodec/avs.c
index 0881d7417e..39ce7da561 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");