[FFmpeg-devel] [PATCH]Reorder channels for some mov channel layouts
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?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: Digital signature
More information about the ffmpeg-devel