# HG changeset patch # User ods15 # Date 1159769376 0 # Node ID 5ae5224790d32b0759d322af09b10dd163d37f64 # Parent 557b95209664bf952f7016488b771809a6cc698c Original Commit: r107 | ods15 | 2006-10-01 18:13:12 +0200 (Sun, 01 Oct 2006) | 2 lines give proper error message for channels!=2 diff -r 557b95209664 -r 5ae5224790d3 vorbis_enc.c --- a/vorbis_enc.c Mon Oct 02 06:09:33 2006 +0000 +++ b/vorbis_enc.c Mon Oct 02 06:09:36 2006 +0000 @@ -1362,7 +1362,10 @@ { venc_context_t * venc = avccontext->priv_data; - if (avccontext->channels != 2) return -1; + if (avccontext->channels != 2) { + av_log(avccontext, AV_LOG_ERROR, "Current FFmpeg Vorbis encoder only supports 2 channels.\n"); + return -1; + } create_vorbis_context(venc, avccontext);