From 56f0fe6b8434d25917c41a343323950291d8db21 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 8 Jun 2015 20:16:06 +0200 Subject: swr: Fix ASSERT_LEVEL warning Found-by: cehoyos Signed-off-by: Michael Niedermayer --- libswresample/swresample.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libswresample') 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 -- cgit v1.2.3