[FFmpeg-cvslog] r15371 - trunk/libavcodec/libfaac.c
stefano
subversion
Sat Sep 20 13:13:14 CEST 2008
Author: stefano
Date: Sat Sep 20 13:13:14 2008
New Revision: 15371
Log:
Log an error message in case of invalid number of channels.
Modified:
trunk/libavcodec/libfaac.c
Modified: trunk/libavcodec/libfaac.c
==============================================================================
--- trunk/libavcodec/libfaac.c (original)
+++ trunk/libavcodec/libfaac.c Sat Sep 20 13:13:14 2008
@@ -38,8 +38,10 @@ static av_cold int Faac_encode_init(AVCo
unsigned long samples_input, max_bytes_output;
/* number of channels */
- if (avctx->channels < 1 || avctx->channels > 6)
+ if (avctx->channels < 1 || avctx->channels > 6) {
+ av_log(avctx, AV_LOG_ERROR, "encoding %d channel(s) is not allowed\n", avctx->channels);
return -1;
+ }
s->faac_handle = faacEncOpen(avctx->sample_rate,
avctx->channels,
More information about the ffmpeg-cvslog
mailing list