aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2015-12-11 21:08:48 +0100
committerDiego Biurrun <diego@biurrun.de>2016-11-22 17:28:17 +0100
commit6427379f23eb4d2b82d8d274c616f68b65a2f723 (patch)
tree8eea58d7be0f30a05e7ad3bd694c31bf879ac0d4
parent367f95af555d096bbc448f185f1902378b2fe805 (diff)
downloadffmpeg-6427379f23eb4d2b82d8d274c616f68b65a2f723.tar.gz
als: Restructure DEBUG ifdefs to avoid unused function parameter warnings
-rw-r--r--libavcodec/alsdec.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c
index f356a70104..af514870ef 100644
--- a/libavcodec/alsdec.c
+++ b/libavcodec/alsdec.c
@@ -246,9 +246,9 @@ typedef struct ALSBlockData {
} ALSBlockData;
+#ifdef DEBUG
static av_cold void dprint_specific_config(ALSDecContext *ctx)
{
-#ifdef DEBUG
AVCodecContext *avctx = ctx->avctx;
ALSSpecificConfig *sconf = &ctx->sconf;
@@ -270,8 +270,10 @@ static av_cold void dprint_specific_config(ALSDecContext *ctx)
ff_dlog(avctx, "chan_sort = %i\n", sconf->chan_sort);
ff_dlog(avctx, "RLSLMS = %i\n", sconf->rlslms);
ff_dlog(avctx, "chan_config_info = %i\n", sconf->chan_config_info);
-#endif
}
+#else
+#define dprint_specific_config(x) do {} while(0)
+#endif
/** Read an ALSSpecificConfig from a buffer into the output struct.