avfilter/framequeue: add missing check for ASSERT_LEVEL
authorJames Almer <jamrial@gmail.com>
Sat, 24 Dec 2016 04:56:24 +0000 (01:56 -0300)
committerJames Almer <jamrial@gmail.com>
Sat, 24 Dec 2016 04:56:24 +0000 (01:56 -0300)
Signed-off-by: James Almer <jamrial@gmail.com>
libavfilter/framequeue.c

index debeab26836ce4fc843f657e02c6ce76be45ffe1..a4ffa86c9526112b864559eae48df1dc6772c986 100644 (file)
@@ -33,7 +33,7 @@ void ff_framequeue_global_init(FFFrameQueueGlobal *fqg)
 
 static void check_consistency(FFFrameQueue *fq)
 {
-#if ASSERT_LEVEL >= 2
+#if defined(ASSERT_LEVEL) && ASSERT_LEVEL >= 2
     uint64_t nb_samples = 0;
     size_t i;