gcc stopped complaining with av_unused() but valgrind still thinks that the
variable is used uninitialized and emits errors.
---
 libavcodec/ac3enc_template.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/ac3enc_template.c b/libavcodec/ac3enc_template.c
index 0547165..bb146f7 100644
--- a/libavcodec/ac3enc_template.c
+++ b/libavcodec/ac3enc_template.c
@@ -341,7 +341,7 @@ void AC3_NAME(compute_rematrixing_strategy)(AC3EncodeContext *s)
 {
     int nb_coefs;
     int blk, bnd, i;
-    AC3Block *block, *av_uninit(block0);
+    AC3Block *block, *block0=NULL;
 
     if (s->channel_mode != AC3_CHMODE_STEREO)
         return;
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to