fix issue when provided dimensions are null
This commit is contained in:
		
					parent
					
						
							
								175502e9f7
							
						
					
				
			
			
				commit
				
					
						6b9365c082
					
				
			
		
					 1 changed files with 7 additions and 2 deletions
				
			
		|  | @ -97,8 +97,13 @@ abstract class DefaultVideo extends DefaultAudio implements Interactive, Resampl | |||
|                 break; | ||||
|             case self::RESIZEMODE_FIT: | ||||
|             default: | ||||
|                 $width = $this->width; | ||||
|                 $height = $this->height; | ||||
|                 if (null !== $this->width && null !== $this->height) { | ||||
|                     $width = $this->width; | ||||
|                     $height = $this->height; | ||||
|                 } else { | ||||
|                     $width = $originalWidth; | ||||
|                     $height = $originalHeight; | ||||
|                 } | ||||
|                 break; | ||||
|         } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue