Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Noarkhh committed Jun 18, 2024

Verified

This commit was signed with the committer’s verified signature.
SheepChef SheepChef
1 parent d056bf9 commit 974a365
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion c_src/membrane_vpx_plugin/vpx_decoder.c
Original file line number Diff line number Diff line change
@@ -114,7 +114,7 @@ UNIFEX_TERM decode_frame(UnifexEnv *env, UnifexPayload *frame, State *state) {
vpx_codec_iter_t iter = NULL;
vpx_image_t *img = NULL;
unsigned int frames_cnt = 0, max_frames = 2;
PixelFormat pixel_format;
PixelFormat pixel_format = PIXEL_FORMAT_I420;
UnifexPayload **output_frames =
unifex_alloc(max_frames * sizeof(*output_frames));

7 changes: 6 additions & 1 deletion lib/membrane_vpx/decoder/vpx_decoder.ex
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
defmodule Membrane.VPx.Decoder do
@moduledoc """
Common behaviors for VP8 and VP9 Decoders
"""
alias Membrane.{Buffer, VP8, VP9}
alias Membrane.Element.CallbackContext
alias Membrane.VPx.Decoder.Native

defmodule State do
@moduledoc false
@moduledoc """
State of a decoder
"""
@type t :: %__MODULE__{
codec: :vp8 | :vp9,
codec_module: VP8 | VP9,

0 comments on commit 974a365

Please sign in to comment.