Code Duplication    Length = 6-8 lines in 2 locations

projects/plugins/jetpack/modules/shortcodes/youtube.php 2 locations

@@ 480-485 (lines=6) @@
477
		$w = $input_w;
478
		$h = $input_h;
479
	} elseif ( 0 === $input_w && 0 === $input_h ) {
480
		if ( isset( $query_args['fmt'] ) && (int) $query_args['fmt'] ) {
481
			$w = ( ! empty( $content_width ) ? min( $content_width, 480 ) : 480 );
482
		} else {
483
			$w = ( ! empty( $content_width ) ? min( $content_width, $default_width ) : $default_width );
484
			$h = ceil( ( $w / 16 ) * 9 );
485
		}
486
	} elseif ( $input_w > 0 ) {
487
		$w = $input_w;
488
		$h = ceil( ( $w / 16 ) * 9 );
@@ 489-496 (lines=8) @@
486
	} elseif ( $input_w > 0 ) {
487
		$w = $input_w;
488
		$h = ceil( ( $w / 16 ) * 9 );
489
	} else {
490
		if ( isset( $query_args['fmt'] ) && (int) $query_args['fmt'] ) {
491
			$w = ( ! empty( $content_width ) ? min( $content_width, 480 ) : 480 );
492
		} else {
493
			$w = ( ! empty( $content_width ) ? min( $content_width, $default_width ) : $default_width );
494
			$h = $input_h;
495
		}
496
	}
497
498
	/**
499
	 * Filter the YouTube player width.