[FFmpeg-cvslog] ff_ac3_apply_rematrixing: set flags to NULL

Michael Niedermayer git at videolan.org
Sun Nov 4 19:28:17 CET 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Nov  4 18:47:20 2012 +0100| [712287ef457767000fdbf62c1d4e105c2d77e5a8] | committer: Michael Niedermayer

ff_ac3_apply_rematrixing: set flags to NULL

This makes the code more robust

Related to CID703820
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=712287ef457767000fdbf62c1d4e105c2d77e5a8
---

 libavcodec/ac3enc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/ac3enc.c b/libavcodec/ac3enc.c
index e5dea46..9781af5 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;



More information about the ffmpeg-cvslog mailing list