[SCM] kodi/master: Apply workaround for scratchy sound with FFmpeg 3.4
rbalint at users.alioth.debian.org
rbalint at users.alioth.debian.org
Tue Dec 26 01:12:46 UTC 2017
The following commit has been merged in the master branch:
commit ead8e52b9a334d580fa3e9af81d87f4b079eb644
Author: Balint Reczey <balint.reczey at canonical.com>
Date: Mon Dec 25 23:38:15 2017 +0100
Apply workaround for scratchy sound with FFmpeg 3.4
Closes: #881536
Thanks: James Cowgill for pointing out the solution
Thanks: Stefan Hachmann for the patch
diff --git a/debian/patches/19-fix-audio-with-latest-ffmpeg.patch b/debian/patches/19-fix-audio-with-latest-ffmpeg.patch
new file mode 100644
index 0000000..5f5e613
--- /dev/null
+++ b/debian/patches/19-fix-audio-with-latest-ffmpeg.patch
@@ -0,0 +1,15 @@
+From: Stefan Hachmann <stefan at hachmann-it.de>
+To: 881536 at bugs.debian.org
+Subject: Re: Bug#881536: ffmpeg: Breaks sound in kodi
+
+--- a/xbmc/cores/VideoPlayer/VideoPlayerAudio.cpp
++++ b/xbmc/cores/VideoPlayer/VideoPlayerAudio.cpp
+@@ -486,7 +486,7 @@
+ // guess next pts
+ m_audioClock += audioframe.duration;
+
+- int ret = m_pAudioCodec->Decode(nullptr, 0, DVD_NOPTS_VALUE, DVD_NOPTS_VALUE);
++ int ret = 0;
+ if (ret < 0)
+ {
+ CLog::Log(LOGERROR, "CVideoPlayerAudio::DecodeFrame - Decode Error. Skipping audio packet (%d)", ret);
diff --git a/debian/patches/series b/debian/patches/series
index 268e9c0..1999427 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -17,6 +17,7 @@
16-fix-alpha-build.patch
17-add-test-for-CVE-2017-8314-with-autotools-build.patch
18-support-omitting-addons-service.patch
+19-fix-audio-with-latest-ffmpeg.patch
libdvdnav-0001-xbmc-dvdnav-allow-get-set-vm-state.patch
libdvdnav-0002-xbmc-dvdnav-expose-dvdnav_get_vm-dvdnav_get_button_i.patch
libdvdnav-0003-xbmc-dvdnav-detection-of-dvd-name.patch
--
kodi packaging
More information about the pkg-multimedia-commits
mailing list