From 712287ef457767000fdbf62c1d4e105c2d77e5a8 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 4 Nov 2012 18:47:20 +0100 Subject: [PATCH] ff_ac3_apply_rematrixing: set flags to NULL This makes the code more robust Related to CID703820 Signed-off-by: Michael Niedermayer --- libavcodec/ac3enc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/ac3enc.c b/libavcodec/ac3enc.c index e5dea46275..9781af59bb 100644 --- a/libavcodec/ac3enc.c +++ b/libavcodec/ac3enc.c @@ -273,7 +273,7 @@ void ff_ac3_apply_rematrixing(AC3EncodeContext *s) int nb_coefs; int blk, bnd, i; int start, end; - uint8_t *flags; + uint8_t *flags = NULL; if (!s->rematrixing_enabled) return;