Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Add docs

ashilkn60b3e0977e71
diff --git a/mobile/lib/ui/tools/editor/video_editor_page.dart b/mobile/lib/ui/tools/editor/video_editor_page.dart
index 2c2c039255..bc97f318f0 100644
--- a/mobile/lib/ui/tools/editor/video_editor_page.dart
+++ b/mobile/lib/ui/tools/editor/video_editor_page.dart
@@ -48,6 +48,11 @@ class _VideoEditorPageState extends State<VideoEditorPage> {
final _exportingProgress = ValueNotifier<double>(0.0);
final _isExporting = ValueNotifier<bool>(false);
final _logger = Logger("VideoEditor");
+
+ /// Some videos have a 'rotation' property in exif that is not 0 which
+ /// causes the video to appear rotated in the video editor preview.
+ /// This variable is used as a workaround to rotate the video back to its
+ /// expected orientation.
int? _quarterTurnsForRotationCorrection;
VideoEditorController? _controller;