Issue with musepack playback (first part cut off)
#12
Hi again,

I just retested with Leia 8.1 (Release) on Linux Mint 19.1 installed from the ppa and the issue persists. Please remind that the issue is only audible if the audio track starts right away as only the first 32 frames (0.8 s) are missing. As an example you can use the following test track: https://www.sendspace.com/file/xju086. Properly decoded the tracks starts with the singer breathing in (can be checked with any other mpc supporting player). Kodi misses this breathing sound and starts with the first words of the singer. It is very obvious.
 
The simple proof-of-concept code change to fix the playback is applied to libavcodec/mpc7.c is to just comment one line:
Quote:static void mpc7_decode_flush(AVCodecContext *avctx)
{
    MPCContext *c = avctx->priv_data;

    memset(c->oldDSCF, 0, sizeof(c->oldDSCF));
    /* c->frames_to_skip = 32; */
}

I will try to download and compile headrevision tonight and apply the same fix. In the meanwhile it would be helpful if someone can help me with pointing me to the right place from where the seek is triggered and the decoder functions are called.

Regards,
Buschel
Reply


Messages In This Thread
RE: Issue with musepack playback (first part cut off) - by Buschel - 2019-04-19, 07:48


Logout Mark Read Team Forum Stats Members Help
Issue with musepack playback (first part cut off)0
This forum uses Lukasz Tkacz MyBB addons.