[MPlayer-dev-eng] [PATCH] Fix NAS ao for small files.

Uoti Urpala uoti.urpala at pp1.inet.fi
Sat Aug 16 01:05:27 CEST 2008


On Fri, 2008-08-15 at 18:23 +0200, Tobias Diedrich wrote:
> someone pointed out to me that the NAS ao does not work correctly
> with very small .wav files (or really anything where less than
> outburst is to be played).
> 
> The attached patch should fix that (and has been lying on my disk a
> bit long, but still applies to current svn).

+       if (len < ao_data.outburst) {

It would be better to check "flags & AOPLAY_FINAL_CHUNK" instead. If it
is set then you should play the current chunk completely even if it's
not a multiple of outburst.





More information about the MPlayer-dev-eng mailing list