[FFmpeg-cvslog] mpegaudio: Do not print value of uninitialized variable

Diego Biurrun git at videolan.org
Fri Mar 24 14:14:30 EET 2017


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Sun Jan  3 20:45:48 2016 +0100| [255526998501f0040ae43fe4848c817a97fc578a] | committer: Diego Biurrun

mpegaudio: Do not print value of uninitialized variable

libavcodec/mpegaudiodec_template.c:885:97: warning: variable 'x' is uninitialized when used here [-Wuninitialized]

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

 libavcodec/mpegaudiodec_template.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavcodec/mpegaudiodec_template.c b/libavcodec/mpegaudiodec_template.c
index 9bfba6f..4b90c6f 100644
--- a/libavcodec/mpegaudiodec_template.c
+++ b/libavcodec/mpegaudiodec_template.c
@@ -877,8 +877,8 @@ static int huffman_decode(MPADecodeContext *s, GranuleDef *g,
 
             exponent= exponents[s_index];
 
-            ff_dlog(s->avctx, "region=%d n=%d x=%d y=%d exp=%d\n",
-                    i, g->region_size[i] - j, x, y, exponent);
+            ff_dlog(s->avctx, "region=%d n=%d y=%d exp=%d\n",
+                    i, g->region_size[i] - j, y, exponent);
             if (y & 16) {
                 x = y >> 5;
                 y = y & 0x0f;



More information about the ffmpeg-cvslog mailing list