[MPlayer-dev-eng] Possible bug when sample rate changes mid-stream

Alexander Strasser eclipse7 at gmx.net
Wed Oct 16 21:26:05 CEST 2013


On 2013-10-16 20:06 +0200, Reimar Döffinger wrote:
> On Wed, Oct 16, 2013 at 04:58:35AM +0200, Reimar Döffinger wrote:
> > 
> > 
> > On 15.10.2013, at 23:46, Paul Kelly <paul at stjohnspoint.co.uk> wrote:
> > 
> > > On Tue, 15 Oct 2013, Reimar Döffinger wrote:
> > > 
> > >> On Mon, Oct 07, 2013 at 08:53:33PM +0000, Paul Kelly wrote:
> > >>> I am experiencing a problem with mplayer when playing MP3 audio in
> > >>> which the sample rate changes during playback. The problem shows
> > >>> itself in particular with some internet radio stations which change
> > >>> from 22050 Hz to 44100 Hz mid-stream without any interruption -
> > >>> mplayer will play such a stream at half speed after the change.
> > >>> 
> > >> 
> > >> Should be kind of mostly fixed by r36465.
> > > 
> > > Thanks for this and for the earlier explanation, which makes sense. Unfortunately using the latest SVN I still have the problem; it looks to me that the variable c->last_samplerate is never being set to anything
> > > after initialisation. The attached patch makes it work for me.
> > 
> > How embarrassing. I think I tested with mpg123 by accident, that's why I thought it worked...
> 
> Fixed along with another bug (bad combination of allocation and free
> functions).

  That was missing in the commit message IIRC. Though now that you
say it the change makes of course sense.

  Alexander
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20131016/667cca2c/attachment.asc>


More information about the MPlayer-dev-eng mailing list