mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-13 03:31:45 +08:00
Fix MP4Reader available speed range bug (#2516)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user