Check AVCodec.supported_samplerates and AVCodec.channel_layouts in
authorJustin Ruggles <justin.ruggles@gmail.com>
Tue, 19 Apr 2011 22:50:20 +0000 (18:50 -0400)
committerJustin Ruggles <justin.ruggles@gmail.com>
Wed, 27 Apr 2011 16:57:42 +0000 (12:57 -0400)
commit8b00ab0113a8ca40429e0a06331be83996963a9e
tree37f89d8a6c6a35c9b1f8816e898d0f91e209f805
parent767848d7619ce43e00d1a13607a5cf2aa61d2d6e
Check AVCodec.supported_samplerates and AVCodec.channel_layouts in
avcodec_open().

If the encoder has a channel_layouts list and AVCodecContext.channel_layout
is 0, then only print a warning and let the encoder decide how to handle it.
libavcodec/utils.c