summaryrefslogtreecommitdiff
path: root/libavcodec/ac3enc.c
diff options
context:
space:
mode:
authorJustin Ruggles <justin.ruggles@gmail.com>2010-12-14 14:52:43 +0000
committerJustin Ruggles <justin.ruggles@gmail.com>2010-12-14 14:52:43 +0000
commite0685bc98f4b13b736b0edf843b205642806385e (patch)
tree94d5ef55098a30e91c6f3de82980d83ca718ad85 /libavcodec/ac3enc.c
parent282255bbd21815ef6471298ce9e3422b58984678 (diff)
cosmetics: add & alter some comments
Originally committed as revision 25985 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ac3enc.c')
-rw-r--r--libavcodec/ac3enc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/ac3enc.c b/libavcodec/ac3enc.c
index 296c156832..d946c64b9f 100644
--- a/libavcodec/ac3enc.c
+++ b/libavcodec/ac3enc.c
@@ -1254,6 +1254,7 @@ static av_cold int validate_options(AVCodecContext *avctx, AC3EncodeContext *s)
{
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(AVCodecContext *avctx, AC3EncodeContext *s)
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(AVCodecContext *avctx, AC3EncodeContext *s)
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;