[SCM] libav/experimental: fix compilation with DEBUG defined

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:46:53 UTC 2013


The following commit has been merged in the experimental branch:
commit 19c0563ac2d8b7e27ca21842e7a4aa28a2bf7e6c
Author: Baptiste Coudurier <baptiste.coudurier at gmail.com>
Date:   Sun May 31 04:26:22 2009 +0000

    fix compilation with DEBUG defined
    
    Originally committed as revision 19015 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/mpegaudiodecheader.c b/libavcodec/mpegaudiodecheader.c
index e29b9b9..df1785e 100644
--- a/libavcodec/mpegaudiodecheader.c
+++ b/libavcodec/mpegaudiodecheader.c
@@ -90,20 +90,20 @@ int ff_mpegaudio_decode_header(MPADecodeHeader *s, uint32_t header)
     }
 
 #if defined(DEBUG)
-    dprintf(s->avctx, "layer%d, %d Hz, %d kbits/s, ",
+    dprintf(NULL, "layer%d, %d Hz, %d kbits/s, ",
            s->layer, s->sample_rate, s->bit_rate);
     if (s->nb_channels == 2) {
         if (s->layer == 3) {
             if (s->mode_ext & MODE_EXT_MS_STEREO)
-                dprintf(s->avctx, "ms-");
+                dprintf(NULL, "ms-");
             if (s->mode_ext & MODE_EXT_I_STEREO)
-                dprintf(s->avctx, "i-");
+                dprintf(NULL, "i-");
         }
-        dprintf(s->avctx, "stereo");
+        dprintf(NULL, "stereo");
     } else {
-        dprintf(s->avctx, "mono");
+        dprintf(NULL, "mono");
     }
-    dprintf(s->avctx, "\n");
+    dprintf(NULL, "\n");
 #endif
     return 0;
 }

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list