Skip to content

Commit

Permalink
Merge pull request #60 from membraneframework/end_of_stream_pts
Browse files Browse the repository at this point in the history
Set pts at the end of stream (opus)
  • Loading branch information
bartkrak authored Mar 11, 2024
2 parents 91f7435 + 8e1cfea commit 4ea00a0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ The package can be installed by adding `membrane_opus_plugin` to your list of de
```elixir
def deps do
[
{:membrane_opus_plugin, "~> 0.20.0"}
{:membrane_opus_plugin, "~> 0.20.1"}
]
end
```
Expand Down
2 changes: 1 addition & 1 deletion lib/membrane_opus/encoder.ex
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ defmodule Membrane.Opus.Encoder do
# pad with 0
to_encode = String.pad_trailing(state.queue, frame_size_in_bytes(state), <<0>>)
{:ok, raw_encoded} = Native.encode_packet(state.native, to_encode, frame_size(state))
buffer_actions = [buffer: {:output, %Buffer{payload: raw_encoded}}]
buffer_actions = [buffer: {:output, %Buffer{payload: raw_encoded, pts: state.current_pts}}]
{buffer_actions ++ actions, %{state | queue: <<>>}}
else
{actions, %{state | queue: <<>>}}
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule Membrane.Opus.Plugin.Mixfile do
use Mix.Project

@version "0.20.0"
@version "0.20.1"
@github_url "https://github.com/membraneframework/membrane_opus_plugin"

def project do
Expand Down

0 comments on commit 4ea00a0

Please sign in to comment.