Merge branch 'release-1.34'

This commit is contained in:
Isaac Connor 2020-10-19 09:10:28 -04:00
commit e2b76257eb
2 changed files with 4 additions and 2 deletions

View File

@ -215,7 +215,7 @@ if ( ($codec == 'MP4' || $codec == 'auto' ) && $Event->DefaultVideo() ) {
array_map(function($r){return $r/100;},
array_filter(
array_keys($rates),
function($r){return $r >= 0 ? true : false;},
function($r){return $r >= 0 ? true : false;}
))) ?>], "plugins": { "zoomrotate": { "zoom": "<?php echo $Zoom ?>"}}}'
>
<source src="<?php echo $Event->getStreamSrc(array('mode'=>'mpeg','format'=>'h264'),'&amp;'); ?>" type="video/mp4">

View File

@ -182,7 +182,9 @@ function applyPreset() {
function toPixels(field, maxValue) {
if ( field.value != '' ) {
field.value = Math.round((field.value*maxValue)/100);
if ( field.value > maxValue ) field.value = maxValue;
if ( field.value > maxValue ) {
field.value = maxValue;
}
}
field.setAttribute('step', 1);
field.setAttribute('max', maxValue);