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

Carl Eugen Hoyos cehoyos at ag.or.at
Thu Jun 23 16:36:25 CEST 2011


Nicolas George <nicolas.george <at> normalesup.org> writes:

> 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.

Would that be sufficient for stream copy?
(I don't think so.)

> 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.

I wanted to think about this when I find such an alternative scheme.
(But I fear it will need another specific field if we want to support stream
copying.)

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

Sure, but I thought about moving it as soon as/if another codec needs it.

Carl Eugen



More information about the ffmpeg-devel mailing list