swr: Fix ASSERT_LEVEL warning
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 8 Jun 2015 18:16:06 +0000 (20:16 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 8 Jun 2015 18:16:06 +0000 (20:16 +0200)
Found-by: cehoyos
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libswresample/swresample.c

index 8e9efb2..ab02bac 100644 (file)
@@ -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