diff --git a/tests/test_bench_push.cpp b/tests/test_bench_push.cpp index 7e6c93e9..387e3ec1 100644 --- a/tests/test_bench_push.cpp +++ b/tests/test_bench_push.cpp @@ -7,7 +7,7 @@ * LICENSE file in the root of the source tree. All contributing project authors * may be found in the AUTHORS file in the root of the source tree. */ - +#ifdef ENABLE_MP4 #include #include #include @@ -261,3 +261,4 @@ int main(int argc, char *argv[]) { return 0; } +#endif diff --git a/tests/test_pusherMp4.cpp b/tests/test_pusherMp4.cpp index e2f9c7c5..bbdee643 100644 --- a/tests/test_pusherMp4.cpp +++ b/tests/test_pusherMp4.cpp @@ -7,7 +7,7 @@ * LICENSE file in the root of the source tree. All contributing project authors * may be found in the AUTHORS file in the root of the source tree. */ - +#ifdef ENABLE_MP4 #include #include #include "Util/logger.h" @@ -141,3 +141,4 @@ int main(int argc, char *argv[]) { // return domain("/Users/xiongziliang/Downloads/mp4/Quantum.mp4", "rtsp://127.0.0.1/live/rtsp_push"); return domain(argv[1], argv[2]); } +#endif \ No newline at end of file