Browse Source

VLCPlaybackController: Add aspect ratio for crop fill for iPhone 4

(cherry picked from commit bf6563953256bba9fb252e9e8bca3ded86ed9c78)
Carola Nitz 7 years ago
parent
commit
7dc66c6d61
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Sources/VLCPlaybackController.m

+ 2 - 0
Sources/VLCPlaybackController.m

@@ -759,6 +759,8 @@ VLCMediaDelegate>
                 _mediaPlayer.videoAspectRatio = "4:3";
             } else if (f_ar == .5625) {// AirPlay
                 _mediaPlayer.videoAspectRatio = "16:9";
+            } else if (f_ar == 1.5) { //iPhone 4
+                _mediaPlayer.videoAspectRatio = "3:2";
             } else
                 APLog(@"unknown screen format %f, can't crop", f_ar);
         } else {