From 04cc58d66a4b0e4c2d7ecf4541f10c64cec99609 Mon Sep 17 00:00:00 2001 From: bartoszek Date: Fri, 5 Apr 2019 12:52:22 +0200 Subject: [PATCH] Distro agnostic ffmpeg version test fix #217 --- src/podcast/podcast.pri | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/podcast/podcast.pri b/src/podcast/podcast.pri index 7e6ea9ee..e96263fa 100644 --- a/src/podcast/podcast.pri +++ b/src/podcast/podcast.pri @@ -69,8 +69,8 @@ linux-g++* { -lxcb-xfixes \ -lxcb-render -lxcb-shape -lxcb -lX11 -lasound -lSDL -lx264 -lpthread -lvpx -lvorbisenc -lvorbis -ltheoraenc -ltheoradec -logg -lopus -lmp3lame -lfreetype -lfdk-aac -lass -llzma -lbz2 -lz -ldl -lswresample -lswscale -lavutil -lm - UBUNTU_VERSION = $$system(lsb_release -irs) - equals(UBUNTU_VERSION, Ubuntu 14.04) { + FFMPEG_VERSION = $$system(ffmpeg --version|& grep -oP "version.*?\K[0-9]\.[0-9]") + equals(FFMPEG_VERSION, 2.8) { LIBS -= -lswresample LIBS += -lavresample }