diff options
author | Diego Biurrun <diego@biurrun.de> | 2015-12-11 14:26:19 +0300 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2016-11-22 19:28:16 +0300 |
commit | 5eef983297b5e2eaa785f1e832622480eaa84103 (patch) | |
tree | 3fdee9fd5d8e6ebb002a6ae136dc601a3f7b49a1 /libavformat | |
parent | bdbb8c68668b7610f5a310f5bbb246d2b950426d (diff) |
ape: Restructure DEBUG ifdefs to avoid unused function parameter warnings
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/ape.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libavformat/ape.c b/libavformat/ape.c index 80e3372403..010b795c59 100644 --- a/libavformat/ape.c +++ b/libavformat/ape.c @@ -94,9 +94,9 @@ static int ape_probe(AVProbeData * p) return 0; } +#ifdef DEBUG static void ape_dumpinfo(AVFormatContext * s, APEContext * ape_ctx) { -#ifdef DEBUG int i; av_log(s, AV_LOG_DEBUG, "Descriptor Block:\n\n"); @@ -154,8 +154,10 @@ static void ape_dumpinfo(AVFormatContext * s, APEContext * ape_ctx) av_log(s, AV_LOG_DEBUG, "junklength = %"PRIu32"\n", ape_ctx->junklength); av_log(s, AV_LOG_DEBUG, "firstframe = %"PRIu32"\n", ape_ctx->firstframe); av_log(s, AV_LOG_DEBUG, "totalsamples = %"PRIu32"\n", ape_ctx->totalsamples); -#endif } +#else +#define ape_dumpinfo(s, ape_ctx) do {} while(0) +#endif static int ape_read_header(AVFormatContext * s) { |