[MPlayer-dev-eng] [PATCH] demuxers: move resync_audio_stream call to demuxer.c

Reimar Döffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Sat Oct 15 14:11:11 CEST 2005


Hi,
On Fri, Oct 14, 2005 at 09:38:46PM +0200, Reimar Döffinger wrote:
> the attached patch adds a call to resync_audio_stream to demuxer.c after
> seeking and switch_audio. IMHO this is where it belongs, not the
> individual demuxers.
> demuxer.c is still missing the prototype for the resync_audio_stream.
> Would you find a special prototype or #include "libmpcodecs/dec_audio.h"
> preferable?
> I don't think so, but it might be that this has a a negative effect on
> A-V sync after seeking, please check.

Ok, a fixed version, including the prototype and fixes the switch_audio
function to throw away the already demuxed audio packets before
attempting to switch. Advantage: It should reduce the noise when audio
is actually switched. Disadvantage: you will usually have a gap in the
audio and little desync when doing switch_audio even when it isn't
implemented.

Greetings,
Reimar Döffinger




More information about the MPlayer-dev-eng mailing list