Skip to content

Commit

Permalink
fix assignment of audio statistics, fixes #257
Browse files Browse the repository at this point in the history
  • Loading branch information
slhck committed May 15, 2024
1 parent 8066159 commit 0c27ebb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ffmpeg_normalize/_media_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ def _second_pass(self) -> Iterator[float]:
all_stats = AudioStream.prune_and_parse_loudnorm_output(
output, num_stats=len(self.streams["audio"])
)
for idx, audio_stream in self.streams["audio"].items():
for idx, audio_stream in enumerate(self.streams["audio"].values()):
audio_stream.set_second_pass_stats(all_stats[idx])

# collect all stats for the final report, again (overwrite the input)
Expand Down

0 comments on commit 0c27ebb

Please sign in to comment.