Skip to content

Commit 9856bd1

Browse files
committed
Use the first video of the D2V in PD2V Color Range
1 parent c847225 commit 9856bd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pvsfunc/pd2v.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __init__(self, file: str, verbose=False):
4545
# override the crappy _ColorRange set by core.d2v.Source with one obtained from
4646
# the container/stream if available, or fallback and assume limited/TV
4747
# this makes YUVRGB_Scale setting redundant for less possibility of mistakes
48-
video_track = next(iter(MediaInfo.parse(self.file).video_tracks), None)
48+
video_track = next(iter(MediaInfo.parse(self.d2v.videos[0]).video_tracks), None)
4949
if video_track and getattr(video_track, "color_range", None):
5050
color_range = {"Full": 0, "Limited": 1}[video_track.color_range]
5151
else:

0 commit comments

Comments
 (0)