Revision 5d6e4c16 libavcodec/flacenc.c

View differences:

libavcodec/flacenc.c
219 219

  
220 220
    dsputil_init(&s->dsp, avctx);
221 221

  
222
    if (avctx->sample_fmt != SAMPLE_FMT_S16)
222
    if (avctx->sample_fmt != AV_SAMPLE_FMT_S16)
223 223
        return -1;
224 224

  
225 225
    if (channels < 1 || channels > FLAC_MAX_CHANNELS)
......
1335 1335
    flac_encode_close,
1336 1336
    NULL,
1337 1337
    .capabilities = CODEC_CAP_SMALL_LAST_FRAME | CODEC_CAP_DELAY,
1338
    .sample_fmts = (const enum SampleFormat[]){SAMPLE_FMT_S16,SAMPLE_FMT_NONE},
1338
    .sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_S16,AV_SAMPLE_FMT_NONE},
1339 1339
    .long_name = NULL_IF_CONFIG_SMALL("FLAC (Free Lossless Audio Codec)"),
1340 1340
};

Also available in: Unified diff