Bug#881536: ffmpeg: Breaks sound in kodi
Stefan Hachmann
stefan at hachmann-it.de
Sun Dec 17 00:21:39 UTC 2017
On Sat, 18 Nov 2017 16:18:10 +0000 James Cowgill <jcowgill at debian.org> wrote:
> Thanks. Reassigning the bug to kodi.
>
> I think fixing the audio is easier than fixing the video (which only
> works due to a workaround patch in ffmpeg). Maybe removing this decode
> call is all that is needed?
> https://anonscm.debian.org/git/pkg-multimedia/kodi.git/tree/xbmc/cores/VideoPlayer/VideoPlayerAudio.cpp#n489
Yes, works fine after removal of decode call (with 17.6 from debian git[1]).
Thanks. :-)
[1] To compile it, directory 'kodi-17.6+dfsg1/addons/' have to be
completed with missing library.* directories ...
Best regards,
Stefan
Patch:
--- 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);
More information about the pkg-multimedia-maintainers
mailing list