Skip to content

Commit 6d30071

Browse files
committed
Merge pull request #6 from SamarRizvi/patch-7
Set bitrate properly
2 parents 25eaab3 + 4823811 commit 6d30071

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/PHPVideoToolkit/AudioFormat.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ public function setAudioBitrate($bitrate)
270270
}
271271

272272
$this->_format['audio_bitrate'] = $bitrate;
273+
$this->setQualityVsStreamabilityBalanceRatio(NULL);
273274
return $this;
274275
}
275276

src/PHPVideoToolkit/VideoFormat.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,7 @@ public function setVideoBitrate($bitrate)
605605
}
606606

607607
$this->_format['video_bitrate'] = $bitrate;
608+
$this->setQualityVsStreamabilityBalanceRatio(NULL);
608609
return $this;
609610

610611
//throw new Exception('Unrecognised video bitrate "'.$bitrate.'" set in \\PHPVideoToolkit\\'.get_class($this).'::setVideoBitrate');

0 commit comments

Comments
 (0)