Commit 76e65a1b authored by Michael Niedermayer's avatar 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: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 3f8ee30e
...@@ -57,7 +57,7 @@ avs_decode_frame(AVCodecContext * avctx, ...@@ -57,7 +57,7 @@ avs_decode_frame(AVCodecContext * avctx,
int i, j, x, y, stride, vect_w = 3, vect_h = 3; int i, j, x, y, stride, vect_w = 3, vect_h = 3;
AvsVideoSubType sub_type; AvsVideoSubType sub_type;
AvsBlockType type; AvsBlockType type;
GetBitContext change_map; GetBitContext change_map = {0}; //init to silence warning
if (avctx->reget_buffer(avctx, p)) { if (avctx->reget_buffer(avctx, p)) {
av_log(avctx, AV_LOG_ERROR, "reget_buffer() failed\n"); av_log(avctx, AV_LOG_ERROR, "reget_buffer() failed\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment