[FFmpeg-devel] [PATCH] ffplay multi-channel fix

Michael Niedermayer michaelni
Sun Jan 6 03:08:58 CET 2008


On Sat, Jan 05, 2008 at 04:39:04PM -0500, Justin Ruggles wrote:
> Hi,
> Here is a patch to fix ffplay for decoders which support multi-channel,
> but do not support downmixing.  Basically it moves the SDL audio init to
> after decoder init, which allows for AVCodecContext.channels to be
> changed based on AFCodecContext.request_channels.  If the requested
> channels are not granted, then SDL needs to be init'ed with the full
> number of coded channels.  The result is that multi-channel wav, vorbis,
> flac, etc... will play, but the first 2 channels are treated as
> left/right.  All channels are displayed in the oscilloscope.


Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Many things microsoft did are stupid, but not doing something just because
microsoft did it is even more stupid. If everything ms did were stupid they
would be bankrupt already.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080106/26466db4/attachment.pgp>

More information about the ffmpeg-devel mailing list