From f69214461df7a44ff3c38aa54367d5f94fc59ecb Mon Sep 17 00:00:00 2001 From: ashilkn Date: Mon, 5 Aug 2024 18:09:07 +0530 Subject: [PATCH] [mob][photos] Add todo comment --- mobile/lib/models/ffmpeg/ffprobe_props.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mobile/lib/models/ffmpeg/ffprobe_props.dart b/mobile/lib/models/ffmpeg/ffprobe_props.dart index 59adba31ad..e85430a62f 100644 --- a/mobile/lib/models/ffmpeg/ffprobe_props.dart +++ b/mobile/lib/models/ffmpeg/ffprobe_props.dart @@ -167,7 +167,11 @@ class FFProbeProps { if (key == FFProbeKeys.rFrameRate) { result.fps = _formatFPS(stream[key]); parsedData[key] = result.fps; - } else if (key == FFProbeKeys.codedWidth) { + } + //TODO: Use `height` and `width` instead of `codedHeight` and `codedWidth` + //for better accuracy. `height' and `width` will give the video's "visual" + //height and width. + else if (key == FFProbeKeys.codedWidth) { final width = stream[key]; if (width != null && width != 0) { result._width = width.toString();