[MPlayer-dev-eng] [PATCH] Fix channel reordering for 24-bit audio

Ivan Kalvachev ikalvachev at gmail.com
Fri Feb 19 14:30:09 CET 2010


On 11/13/09, Jason Tackaberry <tack at urandom.ca> wrote:
> Hi,
>
> Having obtained a few 24-bit wave files [1], I noticed that the audio
> was getting mangled during reordering.
>
> The problem is that only a third of the samples in any given buffer were
> getting reordered.  The remaining two thirds were unchanged.  With the
> 8-, 16-, and 32-bit cases, the buffer is treated as either int8_t*,
> int16_t*, or int32_t*, so can be iterated over n_samples.  With the
> 24-bit case, the buffer is treated as int8_t* and therefore must be
> iterated over n_samples*3.
>
> Near as I can tell, reordering 24-bit audio has _never_ worked.  I
> suppose that's possible given that 24-bit content seems rare.  (Less
> rare is 24-bit flac, but ffflac decodes that as s32le so the 24-bit
> paths are not travelled).
>
> Although the fix seems obvious to me, since I find it slightly hard to
> believe something this basic has never worked, rather than checking it
> straight in I thought it could do with review.
>
> Thanks,
> Jason.
>

The patch have been committed at r29971 by tack.

I assume that tack is short of Tackaberry, so you've committed your own patch.

I would just ask you in future to reply to the mail containing the
patch, saying that it have been committed. This is kind of simplistic
system for patch management.
I was searching for bug related to flac surround and I stumbled upon
this perfectly good patch that have been neglected, just to find out
it have been committed long ago.

Best Regards.



More information about the MPlayer-dev-eng mailing list