[FFmpeg-cvslog] als: Restructure DEBUG ifdefs to avoid unused function parameter warnings
Diego Biurrun
git at videolan.org
Mon Apr 3 21:56:36 EEST 2017
ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Fri Dec 11 21:08:48 2015 +0100| [6427379f23eb4d2b82d8d274c616f68b65a2f723] | committer: Diego Biurrun
als: Restructure DEBUG ifdefs to avoid unused function parameter warnings
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6427379f23eb4d2b82d8d274c616f68b65a2f723
---
libavcodec/alsdec.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/libavcodec/alsdec.c b/libavcodec/alsdec.c
index f356a70..af51487 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.
More information about the ffmpeg-cvslog
mailing list