changeset 7490:bddd15a1d167 libavcodec

cosmetics: change function name and comments to refer to block decoding instead of block parsing
author jbr
date Tue, 05 Aug 2008 01:31:40 +0000
parents f6260f8362f6
children 0dbdc638270e
files ac3dec.c
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/ac3dec.c	Tue Aug 05 00:32:27 2008 +0000
+++ b/ac3dec.c	Tue Aug 05 01:31:40 2008 +0000
@@ -711,9 +711,9 @@
 }
 
 /**
- * Parse an audio block from AC-3 bitstream.
+ * Decode a single audio block from the AC-3 bitstream.
  */
-static int ac3_parse_audio_block(AC3DecodeContext *s, int blk)
+static int decode_audio_block(AC3DecodeContext *s, int blk)
 {
     int fbw_channels = s->fbw_channels;
     int channel_mode = s->channel_mode;
@@ -1164,10 +1164,10 @@
             s->output_mode  = s->out_channels == 1 ? AC3_CHMODE_MONO : AC3_CHMODE_STEREO;
     }
 
-    /* parse the audio blocks */
+    /* decode the audio blocks */
     for (blk = 0; blk < s->num_blocks; blk++) {
-        if (!err && ac3_parse_audio_block(s, blk)) {
-            av_log(avctx, AV_LOG_ERROR, "error parsing the audio block\n");
+        if (!err && decode_audio_block(s, blk)) {
+            av_log(avctx, AV_LOG_ERROR, "error decoding the audio block\n");
         }
 
         /* interleave output samples */