File: 06_ffmpeg-abi.patch

package info (click to toggle)
mpv 0.32.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 11,580 kB
  • sloc: ansic: 127,952; python: 16,395; objc: 3,341; javascript: 557; sh: 532; cpp: 258; ruby: 113; pascal: 49; makefile: 30
file content (34 lines) | stat: -rw-r--r-- 1,597 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Description: Suppress ffmpeg version mismatch error
 Requiring an exact ffmpeg version is usually not a good idea in a binary
 distribution because:
 - All FFmpeg security updates require a subsequent binNMU of mpv.
 - Debian generated dependencies do not capture this dependency well (at least
   without extra hacking).
 - The requirement itself usually indicates an ABI violation.
 For these reasons, remove the check and assume the current FFmpeg version is
 compatible.
Author: James Cowgill <jcowgill@debian.org>
Bug-Debian: https://bugs.debian.org/831537
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/player/main.c
+++ b/player/main.c
@@ -387,18 +387,6 @@ int mp_initialize(struct MPContext *mpct
     if (handle_help_options(mpctx))
         return 1; // help
 
-    if (!print_libav_versions(mp_null_log, 0)) {
-        // This happens only if the runtime FFmpeg version is lower than the
-        // build version, which will not work according to FFmpeg's ABI rules.
-        // This does not happen if runtime FFmpeg is newer, which is compatible.
-        print_libav_versions(mpctx->log, MSGL_FATAL);
-        MP_FATAL(mpctx, "\nmpv was compiled against an incompatible version of "
-                 "FFmpeg/Libav than the shared\nlibrary it is linked against. "
-                 "This is most likely a broken build and could\nresult in "
-                 "misbehavior and crashes.\n\nThis is a broken build.\n");
-        return -1;
-    }
-
 #if HAVE_TESTS
     if (opts->test_mode && opts->test_mode[0])
         return run_tests(mpctx) ? 1 : -1;