mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 12:37:09 +08:00
Fix MP4Reader available speed range bug (#2516)
This commit is contained in:
parent
14537bfbc7
commit
7970138966
@ -180,7 +180,7 @@ bool MP4Reader::pause(MediaSource &sender, bool pause) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool MP4Reader::speed(MediaSource &sender, float speed) {
|
bool MP4Reader::speed(MediaSource &sender, float speed) {
|
||||||
if (speed < 0.1 && speed > 20) {
|
if (speed < 0.1 || speed > 20) {
|
||||||
WarnL << "播放速度取值范围非法:" << speed;
|
WarnL << "播放速度取值范围非法:" << speed;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user