feat: Bump version to 0.5.5 and update frame class detection logic

This commit is contained in:
sha
2025-12-30 06:31:51 +00:00
parent a7682bcd24
commit 6b343681a5
6 changed files with 13 additions and 6 deletions
+4 -3
View File
@@ -88,9 +88,10 @@ class MediaInfoExtractor:
# First, try to match width to typical widths
width_matches = []
for frame_class, info in FRAME_CLASSES.items():
if width in info['typical_widths'] and frame_class.endswith(scan_type):
diff = abs(height - info['nominal_height'])
width_matches.append((frame_class, diff))
for tw in info['typical_widths']:
if abs(width - tw) <= 5 and frame_class.endswith(scan_type):
diff = abs(height - info['nominal_height'])
width_matches.append((frame_class, diff))
if width_matches:
# Choose the frame class with the smallest height difference