[FFmpeg-cvslog] ac3enc: 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 20:46:56 2015 +0100| [367f95af555d096bbc448f185f1902378b2fe805] | committer: Diego Biurrun
ac3enc: Restructure DEBUG ifdefs to avoid unused function parameter warnings
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=367f95af555d096bbc448f185f1902378b2fe805
---
libavcodec/ac3enc.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/libavcodec/ac3enc.c b/libavcodec/ac3enc.c
index da141e1..48bc2e7 100644
--- a/libavcodec/ac3enc.c
+++ b/libavcodec/ac3enc.c
@@ -1676,9 +1676,9 @@ void ff_ac3_output_frame(AC3EncodeContext *s, unsigned char *frame)
}
+#ifdef DEBUG
static void dprint_options(AC3EncodeContext *s)
{
-#ifdef DEBUG
AVCodecContext *avctx = s->avctx;
AC3EncOptions *opt = &s->options;
char strbuf[32];
@@ -1787,8 +1787,10 @@ static void dprint_options(AC3EncodeContext *s)
ff_dlog(avctx, "extended bitstream info 2: {not written}\n");
}
}
-#endif
}
+#else
+#define dprint_options(x) do {} while(0)
+#endif
#define FLT_OPTION_THRESHOLD 0.01
More information about the ffmpeg-cvslog
mailing list