Skip to content

Commit

Permalink
Remove accepted h264 profiles restriction (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
varsill authored Aug 25, 2023
1 parent 64fbbb4 commit e9c61c9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ In future, the support for MPEG-DASH is planned as well
Add the following line to your `deps` in `mix.exs`. Run `mix deps.get`.

```elixir
{:membrane_http_adaptive_stream_plugin, "~> 0.15.0"}
{:membrane_http_adaptive_stream_plugin, "~> 0.16.1"}
```

## Usage Example
Expand Down
6 changes: 1 addition & 5 deletions lib/membrane_http_adaptive_stream/sink_bin.ex
Original file line number Diff line number Diff line change
Expand Up @@ -100,23 +100,19 @@ defmodule Membrane.HTTPAdaptiveStream.SinkBin do
"""
]

@accepted_h264_profiles [:constrained_baseline, :baseline, :high]

def_input_pad :input,
demand_unit: :buffers,
accepted_format:
any_of(
Membrane.AAC,
%Membrane.H264{profile: profile} when profile in @accepted_h264_profiles
Membrane.H264
),
availability: :on_request,
options: [
encoding: [
spec: :AAC | :H264,
description: """
Encoding type determining which payloader will be used for the given stream.
For H264, the accepted profiles are #{Enum.map_join(@accepted_h264_profiles, ", ", &inspect/1)}.
"""
],
track_name: [
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.HTTPAdaptiveStream.MixProject do
use Mix.Project

@version "0.16.0"
@version "0.16.1"
@github_url "https://github.com/membraneframework/membrane_http_adaptive_stream_plugin"

def project do
Expand Down

0 comments on commit e9c61c9

Please sign in to comment.