Fix MP4Reader available speed range bug (#2516)

This commit is contained in:
fruit Juice 2023-06-01 14:29:19 +08:00 committed by GitHub
parent 14537bfbc7
commit 7970138966
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}