Commit c3ad312c authored by jbr's avatar jbr

cosmetics: change function name and comments to refer to block decoding

instead of block parsing

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14613 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 080155f5
...@@ -711,9 +711,9 @@ static void ac3_upmix_delay(AC3DecodeContext *s) ...@@ -711,9 +711,9 @@ static void ac3_upmix_delay(AC3DecodeContext *s)
} }
/** /**
* 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 fbw_channels = s->fbw_channels;
int channel_mode = s->channel_mode; int channel_mode = s->channel_mode;
...@@ -1164,10 +1164,10 @@ static int ac3_decode_frame(AVCodecContext * avctx, void *data, int *data_size, ...@@ -1164,10 +1164,10 @@ static int ac3_decode_frame(AVCodecContext * avctx, void *data, int *data_size,
s->output_mode = s->out_channels == 1 ? AC3_CHMODE_MONO : AC3_CHMODE_STEREO; 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++) { for (blk = 0; blk < s->num_blocks; blk++) {
if (!err && ac3_parse_audio_block(s, blk)) { if (!err && decode_audio_block(s, blk)) {
av_log(avctx, AV_LOG_ERROR, "error parsing the audio block\n"); av_log(avctx, AV_LOG_ERROR, "error decoding the audio block\n");
} }
/* interleave output samples */ /* interleave output samples */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment