Skip to content

deps.ffmpeg: Revert libsrt to v1.5.2 with patches - #295

Merged
RytoEX merged 1 commit into
obsproject:masterfrom
RytoEX:fix-srt
Jul 11, 2025
Merged

RytoEX merged 1 commit into
obsproject:masterfrom
RytoEX:fix-srt

Conversation

@RytoEX

@RytoEX RytoEX commented Jul 10, 2025 •

Copy link
Copy Markdown
Member

Description

Libsrt v1.5.3 does not link against mbedTLS 3.5+. Libsrt v1.5.4 fixes this, but it has a critical regression that causes OBS Studio Media Sources using SRT to fail. The patch to fix this (Haivision/srt@dca5399) is too large for us to want to backport to v1.5.4, so revert to v1.5.2 and backport the patches to build with mbedTLS 3.5+.

Motivation and Context

Fix OBS Studio Media Sources using SRT.

We have to revert to libsrt v1.5.2 with backported fixes because, #228 (comment) :

As a side note, I have not updated mbedTLS because libsrt cannot link against mbedTLS 3.5+ until libsrt 1.5.4 is available.

And a bug in v1.5.3 detailed here:

deps.ffmpeg/patches/srt/0003-fix-mbedtls-v3.5.0-plus-build-error-on-windows.patch
from Haivision/srt@7899f15

deps.ffmpeg/patches/srt/0004-fix-link-bcrypt-on-windows-when-mbedtls-v3.5.0-plus.patch
from Haivision/srt@618ddfe

Also, revert the changes to deps.ffmpeg/patches/srt/0001-enable-proper-cmake-build-types.patch made in #190 to be compatible with libsrt v1.5.2 again. We will have to re-revert that whenever we can update to libsrt v1.5.4+.

How Has This Been Tested?

Tested locally using information from obsproject/obs-studio#12361.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code has been run through clang-format.
  • I have read the contributing document.
  • My code is not on the master branch.
  • The code has been tested.
  • All commit messages are properly formatted and commits squashed where appropriate.
  • I have included updates to all appropriate documentation.

Libsrt v1.5.3 does not link against mbedTLS 3.5+. Libsrt v1.5.4 fixes
this, but it has a critical regression that causes OBS Studio Media
Sources using SRT to fail. The patch to fix this is too large for us to
want to backport to v1.5.4, so revert to v1.5.2 and backport the patches
to build with mbedTLS 3.5+.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants