@@ -742,16 +742,17 @@ def test_decode_start_equal_stop(self, asset):
742742 @pytest .mark .parametrize ("asset" , (NASA_AUDIO , NASA_AUDIO_MP3 ))
743743 def test_multiple_calls (self , asset ):
744744 # Ensure that multiple calls to get_frames_by_pts_in_range_audio on the
745- # same decoder are supported, whether it involves forward seeks or
746- # backwards seeks.
745+ # same decoder are supported and correct , whether it involves forward
746+ # seeks or backwards seeks.
747747
748748 def get_reference_frames (start_seconds , stop_seconds ):
749- # This stateless helper exists for convenience, to avoid
750- # complicating this test with pts-to-index conversions. Eventually
751- # we should remove it and just rely on the asset's methods.
752- # Using this helper is OK for now: we're comparing a decoder which
753- # seeks multiple times with a decoder which seeks only once (the one
754- # here, treated as the reference)
749+ # Usually we get the reference frames from the asset's methods, but
750+ # for this specific test, this helper is more convenient, because
751+ # relying on the asset would force us to convert all timestamps into
752+ # indices.
753+ # Ultimately, this test compares a "stateful decoder" which calls
754+ # `get_frames_by_pts_in_range_audio()`` multiple times with a
755+ # "stateless decoder" (the one here, treated as the reference)
755756 decoder = create_from_file (str (asset .path ), seek_mode = "approximate" )
756757 add_audio_stream (decoder )
757758
0 commit comments