Index: trunk/extensions/TimedMediaHandler/WebVideoTranscode/WebVideoTranscode.php |
— | — | @@ -637,17 +637,17 @@ |
638 | 638 | if ( $sourceHeight > $maxSize['height'] ) { |
639 | 639 | $targetHeight = $maxSize['height']; |
640 | 640 | $targetWidth = intval( $targetHeight * $sourceAspect ); |
641 | | - //some players do not like uneven frame sizes |
642 | | - $targetWidth += $targetWidth%2; |
643 | 641 | } |
644 | 642 | } else { |
645 | 643 | if ( $sourceWidth > $maxSize['width'] ) { |
646 | 644 | $targetWidth = $maxSize['width']; |
647 | 645 | $targetHeight = intval( $targetWidth / $sourceAspect ); |
648 | 646 | //some players do not like uneven frame sizes |
649 | | - $targetHeight += $targetHeight%2; |
650 | 647 | } |
651 | 648 | } |
| 649 | + //some players do not like uneven frame sizes |
| 650 | + $targetWidth += $targetWidth%2; |
| 651 | + $targetHeight += $targetHeight%2; |
652 | 652 | return array( $targetWidth, $targetHeight ); |
653 | 653 | } |
654 | 654 | /** |