Skip to content

Commit 50d8822

Browse files
committed
check limit bitrate is on
1 parent c1093cd commit 50d8822

File tree

1 file changed

+1
-1
lines changed
  • cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php

1 file changed

+1
-1
lines changed

cloudinary-image-management-and-manipulation-in-the-cloud-cdn/php/class-media.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ public function apply_default_transformations( array $transformations, $type = '
498498
$default = array();
499499
if ( 'video' === $type ) {
500500
$default['quality'] = 'auto';
501-
if ( isset( $global['video_limit_bitrate'] ) ) {
501+
if ( isset( $global['video_limit_bitrate'] ) && 'on' === $global['video_limit_bitrate'] ) {
502502
$default['bit_rate'] = $global['video_bitrate'] . 'k';
503503
}
504504
} else {

0 commit comments

Comments
 (0)