From 7970138966a9b032bed230411d8371e5ffa52f71 Mon Sep 17 00:00:00 2001 From: fruit Juice <2317232721@qq.com> Date: Thu, 1 Jun 2023 14:29:19 +0800 Subject: [PATCH] Fix MP4Reader available speed range bug (#2516) --- src/Record/MP4Reader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Record/MP4Reader.cpp b/src/Record/MP4Reader.cpp index 2d4105e0..5c144d2e 100644 --- a/src/Record/MP4Reader.cpp +++ b/src/Record/MP4Reader.cpp @@ -180,7 +180,7 @@ bool MP4Reader::pause(MediaSource &sender, bool pause) { } bool MP4Reader::speed(MediaSource &sender, float speed) { - if (speed < 0.1 && speed > 20) { + if (speed < 0.1 || speed > 20) { WarnL << "播放速度取值范围非法:" << speed; return false; }