]> git.sesse.net Git - ffmpeg/blobdiff - libswresample/swresample.c
Merge commit 'f7e932473314e6ca4c851d49cbde8570b6e66383'
[ffmpeg] / libswresample / swresample.c
index 8e9efb2099ea1de7cf4139625bc4da0d4230211a..ab02bac89a5009361f8570c7635cc6f6ab60ed54 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