Revision 5d6e4c16 libavcodec/alac.c

View differences:

libavcodec/alac.c
505 505
        outputsamples = alac->setinfo_max_samples_per_frame;
506 506

  
507 507
    switch (alac->setinfo_sample_size) {
508
    case 16: avctx->sample_fmt    = SAMPLE_FMT_S16;
508
    case 16: avctx->sample_fmt    = AV_SAMPLE_FMT_S16;
509 509
             alac->bytespersample = channels << 1;
510 510
             break;
511
    case 24: avctx->sample_fmt    = SAMPLE_FMT_S32;
511
    case 24: avctx->sample_fmt    = AV_SAMPLE_FMT_S32;
512 512
             alac->bytespersample = channels << 2;
513 513
             break;
514 514
    default: av_log(avctx, AV_LOG_ERROR, "Sample depth %d is not supported.\n",

Also available in: Unified diff