Revision 5d6e4c16 libavcodec/g726.c

View differences:

libavcodec/g726.c
332 332
    avctx->coded_frame->key_frame = 1;
333 333

  
334 334
    if (avctx->codec->decode)
335
        avctx->sample_fmt = SAMPLE_FMT_S16;
335
        avctx->sample_fmt = AV_SAMPLE_FMT_S16;
336 336

  
337 337
    /* select a frame size that will end on a byte boundary and have a size of
338 338
       approximately 1024 bytes */
......
401 401
    g726_close,
402 402
    NULL,
403 403
    .capabilities = CODEC_CAP_SMALL_LAST_FRAME,
404
    .sample_fmts = (const enum SampleFormat[]){SAMPLE_FMT_S16,SAMPLE_FMT_NONE},
404
    .sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_S16,AV_SAMPLE_FMT_NONE},
405 405
    .long_name = NULL_IF_CONFIG_SMALL("G.726 ADPCM"),
406 406
};
407 407
#endif

Also available in: Unified diff