diff options
author | Oded Shimon <ods15@ods15.dyndns.org> | 2006-10-02 06:09:36 +0000 |
---|---|---|
committer | Oded Shimon <ods15@ods15.dyndns.org> | 2006-10-02 06:09:36 +0000 |
commit | 0c4630f244ab088cfc6facd104464f7f9affca21 (patch) | |
tree | 15666ff5810241c2716c3ea41692c924a9fce83f /libavcodec/vorbis_enc.c | |
parent | a88de9682f90cf2426ff0ebaf0b6d53cf84a4cc4 (diff) | |
download | ffmpeg-streaming-0c4630f244ab088cfc6facd104464f7f9affca21.zip ffmpeg-streaming-0c4630f244ab088cfc6facd104464f7f9affca21.tar.gz |
Original Commit: r107 | ods15 | 2006-10-01 18:13:12 +0200 (Sun, 01 Oct 2006) | 2 lines
give proper error message for channels!=2
Originally committed as revision 6511 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vorbis_enc.c')
-rw-r--r-- | libavcodec/vorbis_enc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/vorbis_enc.c b/libavcodec/vorbis_enc.c index 74ff4a9..94cd021 100644 --- a/libavcodec/vorbis_enc.c +++ b/libavcodec/vorbis_enc.c @@ -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); |