If AVCodecContext.channels is 0 and AVCodecContext.channel_layout is
authorJustin Ruggles <justin.ruggles@gmail.com>
Tue, 19 Apr 2011 23:03:47 +0000 (19:03 -0400)
committerJustin Ruggles <justin.ruggles@gmail.com>
Wed, 27 Apr 2011 16:57:43 +0000 (12:57 -0400)
commit688b09fa597804ab4708271ce467a6ae025f0c17
tree331a6f75ff5bb97c48e5249703d3370ec9cf5f2b
parent168f9e8c40cf383802c8c8059f283a6ea789ec1e
If AVCodecContext.channels is 0 and AVCodecContext.channel_layout is
non-zero, set channels based on channel_layout.

This allows the user to set only channel_layout and not channels.
libavcodec/utils.c