From 3097041404ec5505a03c16990b9c1508146c85b6 Mon Sep 17 00:00:00 2001 From: Franz Pletz Date: Mon, 2 Dec 2024 01:45:54 +0100 Subject: [PATCH] obs-studio: fix lossless audio support Adds patch from upstream to fix lossless audio support due to an incompatibility with ffmpeg 7.1. Fixes #356683. --- pkgs/applications/video/obs-studio/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/applications/video/obs-studio/default.nix b/pkgs/applications/video/obs-studio/default.nix index ebe293597606f..5dff164084dee 100644 --- a/pkgs/applications/video/obs-studio/default.nix +++ b/pkgs/applications/video/obs-studio/default.nix @@ -95,6 +95,13 @@ stdenv.mkDerivation (finalAttrs: { stripLen = 1; hash = "sha256-7SDBRr9G40b9DfbgdaYJxTeiDSLUfVixtMtM3cLTVZs="; }) + + # Fix lossless audio, ffmpeg 7,1 compatibility issue + (fetchpatch { + name = "fix-lossless-audio.patch"; + url = "https://github.com/obsproject/obs-studio/commit/dfc3a69c5276edf84c933035ff2a7e278fa13c9a.patch"; + hash = "sha256-wiF3nolBpZKp7LR7NloNfJ+v4Uq/nBgwCVoKZX+VEMA="; + }) ]; nativeBuildInputs = [