Skip to content

Commit

Permalink
Merge pull request #54 from membraneframework/end_of_stream_pts
Browse files Browse the repository at this point in the history
Set pts at the end of stream
  • Loading branch information
bartkrak authored Mar 11, 2024
2 parents 7d272df + 5626598 commit 9ecdfb6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The package can be installed by adding `membrane_aac_fdk_plugin` to your list of
```elixir
def deps do
[
{:membrane_aac_fdk_plugin, "~> 0.18.5"}
{:membrane_aac_fdk_plugin, "~> 0.18.6"}
]
end
```
Expand Down
4 changes: 3 additions & 1 deletion lib/membrane_aac_fdk_plugin/encoder.ex
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,9 @@ defmodule Membrane.AAC.FDK.Encoder do
actions = [end_of_stream: :output]

with {:ok, encoded_frame} <- Native.encode_frame(<<>>, native) do
buffer_actions = [buffer: {:output, %Buffer{payload: encoded_frame}}]
buffer_actions = [
buffer: {:output, %Buffer{payload: encoded_frame, pts: state.current_pts}}
]

{buffer_actions ++ actions, state}
else
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.AAC.FDK.Plugin.MixProject do
use Mix.Project

@version "0.18.5"
@version "0.18.6"
@github_url "https://github.com/membraneframework/membrane_aac_fdk_plugin"

def project do
Expand Down

0 comments on commit 9ecdfb6

Please sign in to comment.