[Ffmpeg-cvslog] r6501 - trunk/libavcodec/vorbis_enc.c
ods15
subversion
Mon Oct 2 08:09:11 CEST 2006
Author: ods15
Date: Mon Oct 2 08:09:10 2006
New Revision: 6501
Modified:
trunk/libavcodec/vorbis_enc.c
Log:
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...
Modified: trunk/libavcodec/vorbis_enc.c
==============================================================================
--- trunk/libavcodec/vorbis_enc.c (original)
+++ trunk/libavcodec/vorbis_enc.c Mon Oct 2 08:09:10 2006
@@ -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.;
More information about the ffmpeg-cvslog
mailing list