Commit ed6ba56c authored by ods15's avatar ods15

Original Commit: r107 | ods15 | 2006-10-01 18:13:12 +0200 (Sun, 01 Oct 2006) | 2 lines

give proper error message for channels!=2

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6511 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b999e110
......@@ -1362,7 +1362,10 @@ static int vorbis_encode_init(AVCodecContext * avccontext)
{
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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment