aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-06-08 20:16:06 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-06-08 20:16:06 +0200
commit56f0fe6b8434d25917c41a343323950291d8db21 (patch)
tree8a2eab3a22a69684db1645b6bff68c43eacb2d0b
parent653bf3c5a1505bbe2ae8c1c0899e79f4c84bc94a (diff)
downloadffmpeg-56f0fe6b8434d25917c41a343323950291d8db21.tar.gz
swr: Fix ASSERT_LEVEL warning
Found-by: cehoyos Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libswresample/swresample.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libswresample/swresample.c b/libswresample/swresample.c
index 8e9efb2099..ab02bac89a 100644
--- a/libswresample/swresample.c
+++ b/libswresample/swresample.c
@@ -693,7 +693,7 @@ int attribute_align_arg swr_convert(struct SwrContext *s, uint8_t *out_arg[SWR_C
av_log(s, AV_LOG_ERROR, "Context has not been initialized\n");
return AVERROR(EINVAL);
}
-#if ASSERT_LEVEL >1
+#if defined(ASSERT_LEVEL) && ASSERT_LEVEL >1
max_output = swr_get_out_samples(s, in_count);
#endif