@@ -57,7 +57,7 @@ cdef class VideoStream(Stream):
57
57
This is calculated when the file is opened by looking at the first
58
58
few frames and averaging their rate.
59
59
60
- :type: :class:`~ fractions.Fraction` or `` None``
60
+ :type: fractions.Fraction | None
61
61
"""
62
62
return avrational_to_fraction(& self .ptr.avg_frame_rate)
63
63
@@ -70,7 +70,7 @@ cdef class VideoStream(Stream):
70
70
frames can be represented accurately. See :ffmpeg:`AVStream.r_frame_rate`
71
71
for more.
72
72
73
- :type: :class:`~ fractions.Fraction` or `` None``
73
+ :type: fractions.Fraction | None
74
74
"""
75
75
return avrational_to_fraction(& self .ptr.r_frame_rate)
76
76
@@ -81,7 +81,7 @@ cdef class VideoStream(Stream):
81
81
This is a wrapper around :ffmpeg:`av_guess_frame_rate`, and uses multiple
82
82
heuristics to decide what is "the" frame rate.
83
83
84
- :type: :class:`~ fractions.Fraction` or `` None``
84
+ :type: fractions.Fraction | None
85
85
"""
86
86
# The two NULL arguments aren't used in FFmpeg >= 4.0
87
87
cdef lib.AVRational val = lib.av_guess_frame_rate(NULL , self .ptr, NULL )
@@ -94,7 +94,7 @@ cdef class VideoStream(Stream):
94
94
This is a wrapper around :ffmpeg:`av_guess_sample_aspect_ratio`, and uses multiple
95
95
heuristics to decide what is "the" sample aspect ratio.
96
96
97
- :type: :class:`~ fractions.Fraction` or `` None``
97
+ :type: fractions.Fraction | None
98
98
"""
99
99
cdef lib.AVRational sar = lib.av_guess_sample_aspect_ratio(self .container.ptr, self .ptr, NULL )
100
100
return avrational_to_fraction(& sar)
@@ -105,7 +105,7 @@ cdef class VideoStream(Stream):
105
105
106
106
This is calculated from :meth:`.VideoStream.guessed_sample_aspect_ratio`.
107
107
108
- :type: :class:`~ fractions.Fraction` or `` None``
108
+ :type: fractions.Fraction | None
109
109
"""
110
110
cdef lib.AVRational dar
111
111
0 commit comments