Mercurial > libavcodec.hg
comparison ac3dec.c @ 6960:cdde357b67d8 libavcodec
cosmetics: add a comment, remove a comment
author | jbr |
---|---|
date | Sat, 31 May 2008 22:12:49 +0000 |
parents | 3ba980378d90 |
children | 3d84a99ecfa7 |
comparison
equal
deleted
inserted
replaced
6959:3ba980378d90 | 6960:cdde357b67d8 |
---|---|
1152 av_log(avctx, AV_LOG_ERROR, "frame CRC mismatch\n"); | 1152 av_log(avctx, AV_LOG_ERROR, "frame CRC mismatch\n"); |
1153 err = AC3_PARSE_ERROR_CRC; | 1153 err = AC3_PARSE_ERROR_CRC; |
1154 } | 1154 } |
1155 } | 1155 } |
1156 | 1156 |
1157 /* parse the syncinfo */ | |
1158 if(err && err != AC3_PARSE_ERROR_CRC) { | 1157 if(err && err != AC3_PARSE_ERROR_CRC) { |
1159 switch(err) { | 1158 switch(err) { |
1160 case AC3_PARSE_ERROR_SYNC: | 1159 case AC3_PARSE_ERROR_SYNC: |
1161 av_log(avctx, AV_LOG_ERROR, "frame sync error\n"); | 1160 av_log(avctx, AV_LOG_ERROR, "frame sync error\n"); |
1162 break; | 1161 break; |
1209 /* parse the audio blocks */ | 1208 /* parse the audio blocks */ |
1210 for (blk = 0; blk < NB_BLOCKS; blk++) { | 1209 for (blk = 0; blk < NB_BLOCKS; blk++) { |
1211 if (!err && ac3_parse_audio_block(s, blk)) { | 1210 if (!err && ac3_parse_audio_block(s, blk)) { |
1212 av_log(avctx, AV_LOG_ERROR, "error parsing the audio block\n"); | 1211 av_log(avctx, AV_LOG_ERROR, "error parsing the audio block\n"); |
1213 } | 1212 } |
1213 | |
1214 /* interleave output samples */ | |
1214 for (i = 0; i < 256; i++) | 1215 for (i = 0; i < 256; i++) |
1215 for (ch = 0; ch < s->out_channels; ch++) | 1216 for (ch = 0; ch < s->out_channels; ch++) |
1216 *(out_samples++) = s->int_output[ch][i]; | 1217 *(out_samples++) = s->int_output[ch][i]; |
1217 } | 1218 } |
1218 *data_size = NB_BLOCKS * 256 * avctx->channels * sizeof (int16_t); | 1219 *data_size = NB_BLOCKS * 256 * avctx->channels * sizeof (int16_t); |