diff --git a/TMessagesProj/src/main/java/org/telegram/messenger/MediaController.java b/TMessagesProj/src/main/java/org/telegram/messenger/MediaController.java index 837e57c1d..735a13e4a 100644 --- a/TMessagesProj/src/main/java/org/telegram/messenger/MediaController.java +++ b/TMessagesProj/src/main/java/org/telegram/messenger/MediaController.java @@ -4799,9 +4799,10 @@ public class MediaController implements AudioManager.OnAudioFocusChangeListener, if (framerate == 0) { framerate = 25; - } else if (framerate > 59) { - framerate = 59; } +// else if (framerate > 59) { +// framerate = 59; +// } if (rotationValue == 90 || rotationValue == 270) { int temp = resultHeight; @@ -4809,10 +4810,10 @@ public class MediaController implements AudioManager.OnAudioFocusChangeListener, resultWidth = temp; } - if (framerate > 30 && (Math.min(resultHeight, resultWidth) <= 480)) { - framerate = 30; - } - +// if (framerate > 30 && (Math.min(resultHeight, resultWidth) <= 480)) { +// framerate = 30; +// } +// boolean needCompress = avatarStartTime != -1 || info.cropState != null || info.mediaEntities != null || info.paintPath != null || info.filterState != null || resultWidth != originalWidth || resultHeight != originalHeight || rotationValue != 0 || info.roundVideo || startTime != -1; @@ -4906,9 +4907,9 @@ public class MediaController implements AudioManager.OnAudioFocusChangeListener, compressFactor = 1f; minCompressFactor = 1f; } else if (Math.min(height, width) >= 720) { - maxBitrate = 2600_000; - compressFactor = 0.8f; - minCompressFactor = 0.8f; + maxBitrate = 3200_000; + compressFactor = 1.0f; + minCompressFactor = 1.0f; } else if (Math.min(height, width) >= 480) { maxBitrate = 1000_000; compressFactor = 0.7f;