[FFmpeg-devel] [PATCH]Reorder channels for some mov channel layouts

Nicolas George nicolas.george at normalesup.org
Thu Jun 23 14:13:31 CEST 2011

Le septidi 27 prairial, an CCXIX, Carl Eugen Hoyos a écrit :
> I don't know how this should be possible but please make a suggestion.

You could add the channel_map field itself to AVCodecContext, and move the
lookup from pcm.c to lookup.c. That way, if other formats have other means
of specifying the channel order that does not fit the caf_channel_layout
scheme, they can use it nonetheless.

Also, the reordering code could be in util.c rather than pcm.c, so it would
be available for any codec.

> What about my reordering code?

It's not really nice to look at, but this is probably inherent to the
problem itself, I see no way to make it look nice.

Did you profile against order-specific code like we wrote for ALSA?


  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110623/3b3620ba/attachment.asc>

More information about the ffmpeg-devel mailing list