Skip to content

Commit

Permalink
Fix Array.fill call. Fixes: #3678
Browse files Browse the repository at this point in the history
  • Loading branch information
toots committed Jan 29, 2024
1 parent 5aa63d9 commit 78a2ea5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Fixed:
- Make sure reconnection errors are router through the regulat `on_error` callback in `output.icecast` (#3635)
- Fixed discontinuity count after a restart in HLS outputs.
- Fixed memory leaks when using dynamically created sources (`input.harbor`, `input.ffmepg`, SRT sources and `request.dynamic`)
- Fixed invalid array fill in `add` (#3678)

---

Expand Down
2 changes: 1 addition & 1 deletion src/core/operators/add.ml
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ class audio_add ~renorm ~power ~field tracks =
assert (offset <= pos);
let audio_offset = Frame.audio_of_main offset in
let pcm = Content.Audio.get_data (Frame.get buf field) in
Audio.clear pcm audio_offset (Audio.length pcm);
Audio.clear pcm audio_offset (Audio.length pcm - audio_offset);
List.iter
(fun { source; fields } ->
let tmp = self#track_frame source in
Expand Down

0 comments on commit 78a2ea5

Please sign in to comment.