changeset 3896:46ab70354691 libavcodec

Original Commit: r97 | ods15 | 2006-09-30 23:32:19 +0300 (Sat, 30 Sep 2006) | 2 lines don't assert fail for channels != 2, exit cleanly instead...
author ods15
date Mon, 02 Oct 2006 06:09:10 +0000
parents a9d7e965d24f
children 11caa885c449
files vorbis_enc.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/vorbis_enc.c	Mon Oct 02 06:09:08 2006 +0000
+++ b/vorbis_enc.c	Mon Oct 02 06:09:10 2006 +0000
@@ -1057,6 +1057,8 @@
 {
     venc_context_t * venc = avccontext->priv_data;
 
+    if (avccontext->channels != 2) return -1;
+
     create_vorbis_context(venc, avccontext);
 
     if (avccontext->flags & CODEC_FLAG_QSCALE) venc->quality = avccontext->global_quality / (float)FF_QP2LAMBDA / 100.;