Loading pkgs/development/libraries/neatvnc/default.nix +7 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,13 @@ stdenv.mkDerivation rec { hash = "sha256-2gPDcFcu1kGIDubguL38Z0K+k7WGFf7DX8yZteedcNg="; }; patches = [ # Fix build with latest ffmpeg # Backport of https://github.com/any1/neatvnc/commit/7e008743bf872598b4fcdb2a821041064ce5dd01 # FIXME: remove in next update ./fix-ffmpeg.patch ]; strictDeps = true; nativeBuildInputs = [ Loading pkgs/development/libraries/neatvnc/fix-ffmpeg.patch 0 → 100644 +13 −0 Original line number Diff line number Diff line diff --git a/src/h264-encoder.c b/src/h264-encoder.c index 6ad0262..f4a4421 100644 --- a/src/h264-encoder.c +++ b/src/h264-encoder.c @@ -547,7 +547,7 @@ struct h264_encoder* h264_encoder_create(uint32_t width, uint32_t height, goto codec_context_failure; self->codec_ctx->hw_frames_ctx = - av_buffer_ref(self->filter_out->inputs[0]->hw_frames_ctx); + av_buffer_ref(av_buffersink_get_hw_frames_ctx(self->filter_out)); AVDictionary *opts = NULL; av_dict_set_int(&opts, "async_depth", 1, 0); Loading
pkgs/development/libraries/neatvnc/default.nix +7 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,13 @@ stdenv.mkDerivation rec { hash = "sha256-2gPDcFcu1kGIDubguL38Z0K+k7WGFf7DX8yZteedcNg="; }; patches = [ # Fix build with latest ffmpeg # Backport of https://github.com/any1/neatvnc/commit/7e008743bf872598b4fcdb2a821041064ce5dd01 # FIXME: remove in next update ./fix-ffmpeg.patch ]; strictDeps = true; nativeBuildInputs = [ Loading
pkgs/development/libraries/neatvnc/fix-ffmpeg.patch 0 → 100644 +13 −0 Original line number Diff line number Diff line diff --git a/src/h264-encoder.c b/src/h264-encoder.c index 6ad0262..f4a4421 100644 --- a/src/h264-encoder.c +++ b/src/h264-encoder.c @@ -547,7 +547,7 @@ struct h264_encoder* h264_encoder_create(uint32_t width, uint32_t height, goto codec_context_failure; self->codec_ctx->hw_frames_ctx = - av_buffer_ref(self->filter_out->inputs[0]->hw_frames_ctx); + av_buffer_ref(av_buffersink_get_hw_frames_ctx(self->filter_out)); AVDictionary *opts = NULL; av_dict_set_int(&opts, "async_depth", 1, 0);