Revision 5d6e4c16 libavcodec/alacenc.c

View differences:

libavcodec/alacenc.c
383 383
    avctx->frame_size      = DEFAULT_FRAME_SIZE;
384 384
    avctx->bits_per_coded_sample = DEFAULT_SAMPLE_SIZE;
385 385

  
386
    if(avctx->sample_fmt != SAMPLE_FMT_S16) {
386
    if(avctx->sample_fmt != AV_SAMPLE_FMT_S16) {
387 387
        av_log(avctx, AV_LOG_ERROR, "only pcm_s16 input samples are supported\n");
388 388
        return -1;
389 389
    }
......
528 528
    alac_encode_frame,
529 529
    alac_encode_close,
530 530
    .capabilities = CODEC_CAP_SMALL_LAST_FRAME,
531
    .sample_fmts = (const enum SampleFormat[]){ SAMPLE_FMT_S16, SAMPLE_FMT_NONE},
531
    .sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_NONE},
532 532
    .long_name = NULL_IF_CONFIG_SMALL("ALAC (Apple Lossless Audio Codec)"),
533 533
};

Also available in: Unified diff