]> Raphaƫl G. Git Repositories - youtubedl/blob - debian/patches/fix_libav_compat_outdated.patch
Update changelog.
[youtubedl] / debian / patches / fix_libav_compat_outdated.patch
1 From: Carlos Maddela <e7appew@gmail.com>
2 Date: Wed, 2 Mar 2016 04:20:06 +1100
3 Subject: Stop libav compatibility links from being considered as genuine.
4
5 Description: Stop libav compatibility links from being considered as genuine.
6 Don't register version numbers for compatibility links, so that
7 youtube-dl stops complaining about avconv being outdated.
8 Author: Carlos Maddela <e7appew@gmail.com>
9 Origin: vendor
10 Bug: https://github.com/rg3/youtube-dl/pull/8720
11 Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=798936
12 Last-Update: 2016-06-27
13 ---
14 youtube_dl/postprocessor/ffmpeg.py | 9 +++++++--
15 1 file changed, 7 insertions(+), 2 deletions(-)
16
17 diff --git a/youtube_dl/postprocessor/ffmpeg.py b/youtube_dl/postprocessor/ffmpeg.py
18 index 3ea1afc..c62256e 100644
19 --- a/youtube_dl/postprocessor/ffmpeg.py
20 +++ b/youtube_dl/postprocessor/ffmpeg.py
21 @@ -110,11 +110,16 @@ class FFmpegPostProcessor(PostProcessor):
22 self._paths = dict(
23 (p, os.path.join(location, p)) for p in programs)
24 self._versions = dict(
25 - (p, get_exe_version(self._paths[p], args=['-version']))
26 + (p, get_exe_version(self._paths[p], args=['-version'],
27 + version_re=r'%s\s+version\s+([-0-9._a-zA-Z]+)' % p,
28 + unrecognized=False))
29 for p in programs)
30 if self._versions is None:
31 self._versions = dict(
32 - (p, get_exe_version(p, args=['-version'])) for p in programs)
33 + (p, get_exe_version(p, args=['-version'],
34 + version_re=r'%s\s+version\s+([-0-9._a-zA-Z]+)' % p,
35 + unrecognized=False))
36 + for p in programs)
37 self._paths = dict((p, p) for p in programs)
38
39 if prefer_ffmpeg: