]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/blobdiff - libavcodec/libfaac.c
frsh: Export information about the last RTP contract and VRES
[frescor/ffmpeg.git] / libavcodec / libfaac.c
index 2ed4f765f902cc9b7492ddc4be13b03716910739..cd4d38f5ebbacaa89e56368b0cfc862349a2c12a 100644 (file)
@@ -20,7 +20,7 @@
  */
 
 /**
- * @file libfaac.c
+ * @file libavcodec/libfaac.c
  * Interface to libfaac for aac encoding.
  */
 
@@ -38,8 +38,10 @@ static av_cold int Faac_encode_init(AVCodecContext *avctx)
     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,