ff_ac3_apply_rematrixing: set flags to NULL
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 4 Nov 2012 17:47:20 +0000 (18:47 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 4 Nov 2012 18:26:54 +0000 (19:26 +0100)
This makes the code more robust

Related to CID703820
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/ac3enc.c

index e5dea46..9781af5 100644 (file)
@@ -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;