Minor fixes

This commit is contained in:
Romain Neutron 2014-08-12 20:51:22 +02:00
commit 559df352c5

View file

@ -17,14 +17,13 @@ namespace FFMpeg\Format\Video;
class X264 extends DefaultVideo class X264 extends DefaultVideo
{ {
/** @var boolean */ /** @var boolean */
private $bframesSupport; private $bframesSupport = true;
public function __construct($audioCodec = 'libfaac', $videoCodec = 'libx264') public function __construct($audioCodec = 'libfaac', $videoCodec = 'libx264')
{ {
$this $this
->setAudioCodec($audioCodec) ->setAudioCodec($audioCodec)
->setVideoCodec($videoCodec); ->setVideoCodec($videoCodec);
$this->bframesSupport = true;
} }
/** /**
@ -37,6 +36,7 @@ class X264 extends DefaultVideo
/** /**
* @param $support * @param $support
*
* @return X264 * @return X264
*/ */
public function setBFramesSupport($support) public function setBFramesSupport($support)
@ -70,6 +70,9 @@ class X264 extends DefaultVideo
return 2; return 2;
} }
/**
* @return int
*/
public function getModulus() public function getModulus()
{ {
return 2; return 2;