comparison alac.c @ 5400:2433e0070455 libavcodec

Minor cosmetics
author vitor
date Tue, 24 Jul 2007 18:21:40 +0000
parents 04a9bb415804
children 06956c599c4d
comparison
equal deleted inserted replaced
5399:27b3ee661472 5400:2433e0070455
527 /* read the predictor table */ 527 /* read the predictor table */
528 for (i = 0; i < predictor_coef_num[chan]; i++) 528 for (i = 0; i < predictor_coef_num[chan]; i++)
529 predictor_coef_table[chan][i] = (int16_t)get_bits(&alac->gb, 16); 529 predictor_coef_table[chan][i] = (int16_t)get_bits(&alac->gb, 16);
530 } 530 }
531 531
532 if (wasted_bytes) { 532 if (wasted_bytes)
533 av_log(avctx, AV_LOG_ERROR, "FIXME: unimplemented, unhandling of wasted_bytes\n"); 533 av_log(avctx, AV_LOG_ERROR, "FIXME: unimplemented, unhandling of wasted_bytes\n");
534 }
535 534
536 for (chan = 0; chan < channels; chan++) { 535 for (chan = 0; chan < channels; chan++) {
537 bastardized_rice_decompress(alac, 536 bastardized_rice_decompress(alac,
538 alac->predicterror_buffer[chan], 537 alac->predicterror_buffer[chan],
539 outputsamples, 538 outputsamples,
595 interlacing_shift = 0; 594 interlacing_shift = 0;
596 interlacing_leftweight = 0; 595 interlacing_leftweight = 0;
597 } 596 }
598 597
599 switch(alac->setinfo_sample_size) { 598 switch(alac->setinfo_sample_size) {
600 case 16: { 599 case 16:
601 if (channels == 2) { 600 if (channels == 2) {
602 deinterlace_16(alac->outputsamples_buffer, 601 deinterlace_16(alac->outputsamples_buffer,
603 (int16_t*)outbuffer, 602 (int16_t*)outbuffer,
604 alac->numchannels, 603 alac->numchannels,
605 outputsamples, 604 outputsamples,
611 int16_t sample = alac->outputsamples_buffer[0][i]; 610 int16_t sample = alac->outputsamples_buffer[0][i];
612 ((int16_t*)outbuffer)[i * alac->numchannels] = sample; 611 ((int16_t*)outbuffer)[i * alac->numchannels] = sample;
613 } 612 }
614 } 613 }
615 break; 614 break;
616 }
617 case 20: 615 case 20:
618 case 24: 616 case 24:
619 case 32: 617 case 32:
620 av_log(avctx, AV_LOG_ERROR, "FIXME: unimplemented sample size %i\n", alac->setinfo_sample_size); 618 av_log(avctx, AV_LOG_ERROR, "FIXME: unimplemented sample size %i\n", alac->setinfo_sample_size);
621 break; 619 break;