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

Justin Ruggles justinruggles
Sat Jan 5 22:39:04 CET 2008


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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffplay_multichannel.diff
Type: text/x-diff
Size: 1901 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080105/9360a978/attachment.diff>

More information about the ffmpeg-devel mailing list