diff options
author | Oded Shimon <ods15@ods15.dyndns.org> | 2006-10-02 06:09:10 +0000 |
---|---|---|
committer | Oded Shimon <ods15@ods15.dyndns.org> | 2006-10-02 06:09:10 +0000 |
commit | 8d38e5e5f0bff22975fc4a1daa22cf87dbac5ad3 (patch) | |
tree | f81d2b10a55655409f20a5882f95d4c9e439bad8 /libavcodec/vorbis_enc.c | |
parent | 7a82a10a094c413aaddfaf7631bbf6a9fa9eeb78 (diff) | |
download | ffmpeg-8d38e5e5f0bff22975fc4a1daa22cf87dbac5ad3.tar.gz |
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...
Originally committed as revision 6501 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vorbis_enc.c')
-rw-r--r-- | libavcodec/vorbis_enc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/vorbis_enc.c b/libavcodec/vorbis_enc.c index c6f5037f20..4262f93b94 100644 --- a/libavcodec/vorbis_enc.c +++ b/libavcodec/vorbis_enc.c @@ -1057,6 +1057,8 @@ static int vorbis_encode_init(AVCodecContext * avccontext) { 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.; |