Minor fixes
This commit is contained in:
		
					parent
					
						
							
								3a080613e6
							
						
					
				
			
			
				commit
				
					
						559df352c5
					
				
			
		
					 1 changed files with 5 additions and 2 deletions
				
			
		|  | @ -17,14 +17,13 @@ namespace FFMpeg\Format\Video; | |||
| class X264 extends DefaultVideo | ||||
| { | ||||
|     /** @var boolean */ | ||||
|     private $bframesSupport; | ||||
|     private $bframesSupport = true; | ||||
| 
 | ||||
|     public function __construct($audioCodec = 'libfaac', $videoCodec = 'libx264') | ||||
|     { | ||||
|         $this | ||||
|             ->setAudioCodec($audioCodec) | ||||
|             ->setVideoCodec($videoCodec); | ||||
|         $this->bframesSupport = true; | ||||
|     } | ||||
| 
 | ||||
|     /** | ||||
|  | @ -37,6 +36,7 @@ class X264 extends DefaultVideo | |||
| 
 | ||||
|     /** | ||||
|      * @param $support | ||||
|      * | ||||
|      * @return X264 | ||||
|      */ | ||||
|     public function setBFramesSupport($support) | ||||
|  | @ -70,6 +70,9 @@ class X264 extends DefaultVideo | |||
|         return 2; | ||||
|     } | ||||
| 
 | ||||
|     /** | ||||
|      * @return int | ||||
|      */ | ||||
|     public function getModulus() | ||||
|     { | ||||
|         return 2; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue