mpegaudiodec: Don't use a nonexistent log context for av_dlog

Message ID 1321436108-36949-1-git-send-email-martin@martin.st
State Committed
Commit 268fb3f9851590aed724dba83d3999c8369c929f
Headers show

Commit Message

Martin Storsjö Nov. 16, 2011, 9:35 a.m.
This fixes builds with DEBUG defined, broken since
1158745a2d12966c58e83b66243a42f20190812e.
---
 libavcodec/mpegaudiodec.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Comments

Luca Barbato Nov. 16, 2011, 9:56 a.m. | #1
On 11/16/11 10:35 AM, Martin Storsjö wrote:
> This fixes builds with DEBUG defined, broken since
> 1158745a2d12966c58e83b66243a42f20190812e.
> ---

Ok
Janne Grunau Nov. 16, 2011, 9:56 a.m. | #2
On Wed, Nov 16, 2011 at 11:35:08AM +0200, Martin Storsjö wrote:
> This fixes builds with DEBUG defined, broken since
> 1158745a2d12966c58e83b66243a42f20190812e.
> ---
>  libavcodec/mpegaudiodec.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)

ok

Janne

Patch

diff --git a/libavcodec/mpegaudiodec.c b/libavcodec/mpegaudiodec.c
index f8193d6..bc01273 100644
--- a/libavcodec/mpegaudiodec.c
+++ b/libavcodec/mpegaudiodec.c
@@ -288,7 +288,7 @@  static void decode_init_static(AVCodec *codec)
         scale_factor_mult[i][0] = MULLx(norm, FIXR(1.0          * 2.0), FRAC_BITS);
         scale_factor_mult[i][1] = MULLx(norm, FIXR(0.7937005259 * 2.0), FRAC_BITS);
         scale_factor_mult[i][2] = MULLx(norm, FIXR(0.6299605249 * 2.0), FRAC_BITS);
-        av_dlog(avctx, "%d: norm=%x s=%x %x %x\n", i, norm,
+        av_dlog(NULL, "%d: norm=%x s=%x %x %x\n", i, norm,
                 scale_factor_mult[i][0],
                 scale_factor_mult[i][1],
                 scale_factor_mult[i][2]);
@@ -393,7 +393,7 @@  static void decode_init_static(AVCodec *codec)
             k = i & 1;
             is_table_lsf[j][k ^ 1][i] = FIXR(f);
             is_table_lsf[j][k    ][i] = FIXR(1.0);
-            av_dlog(avctx, "is_table_lsf %d %d: %f %f\n",
+            av_dlog(NULL, "is_table_lsf %d %d: %f %f\n",
                     i, j, (float) is_table_lsf[j][0][i],
                     (float) is_table_lsf[j][1][i]);
         }