[FFmpeg-cvslog] r25985 - trunk/libavcodec/ac3enc.c

jbr subversion
Tue Dec 14 15:52:43 CET 2010


Author: jbr
Date: Tue Dec 14 15:52:43 2010
New Revision: 25985

Log:
cosmetics: add & alter some comments

Modified:
   trunk/libavcodec/ac3enc.c

Modified: trunk/libavcodec/ac3enc.c
==============================================================================
--- trunk/libavcodec/ac3enc.c	Tue Dec 14 15:52:40 2010	(r25984)
+++ trunk/libavcodec/ac3enc.c	Tue Dec 14 15:52:43 2010	(r25985)
@@ -1254,6 +1254,7 @@ static av_cold int validate_options(AVCo
 {
     int i, ret;
 
+    /* validate channel layout */
     if (!avctx->channel_layout) {
         av_log(avctx, AV_LOG_WARNING, "No channel layout specified. The "
                                       "encoder will guess the layout, but it "
@@ -1265,7 +1266,7 @@ static av_cold int validate_options(AVCo
         return ret;
     }
 
-    /* frequency */
+    /* validate sample rate */
     for (i = 0; i < 9; i++) {
         if ((ff_ac3_sample_rate_tab[i / 3] >> (i % 3)) == avctx->sample_rate)
             break;
@@ -1278,7 +1279,7 @@ static av_cold int validate_options(AVCo
     s->bit_alloc.sr_shift = i % 3;
     s->bit_alloc.sr_code  = i / 3;
 
-    /* bitrate & frame size */
+    /* validate bit rate */
     for (i = 0; i < 19; i++) {
         if ((ff_ac3_bitrate_tab[i] >> s->bit_alloc.sr_shift)*1000 == avctx->bit_rate)
             break;



More information about the ffmpeg-cvslog mailing list