Hi,
On Tue, Apr 19, 2011 at 7:09 PM, Justin Ruggles
<[email protected]> wrote:
>
> 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 | 28 +++++++++++++++++++++++++++-
> 1 files changed, 27 insertions(+), 1 deletions(-)
[..]
> + if (avctx->codec->supported_samplerates) {
> + for (i = 0; avctx->codec->supported_samplerates[i] != 0; i++)
> + if (avctx->sample_rate ==
> avctx->codec->supported_samplerates[i])
> + break;
> + if (avctx->codec->supported_samplerates[i] == 0) {
> + av_log(avctx, AV_LOG_ERROR, "Specified sample_rate is not
> supported\n");
Specify which samplerates _are_ supported, maybe?
> + if (avctx->codec->channel_layouts) {
if .. && avctx->channel_layout? Or is that always set at this point?
> + av_log(avctx, AV_LOG_ERROR, "Specified channel_layout is
> not supported\n");
Please specify which are supported.
Ronald
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel