Revision 5d6e4c16 libavcodec/g722.c

View differences:

libavcodec/g722.c
193 193
        av_log(avctx, AV_LOG_ERROR, "Only mono tracks are allowed.\n");
194 194
        return AVERROR_INVALIDDATA;
195 195
    }
196
    avctx->sample_fmt = SAMPLE_FMT_S16;
196
    avctx->sample_fmt = AV_SAMPLE_FMT_S16;
197 197

  
198 198
    switch (avctx->bits_per_coded_sample) {
199 199
    case 8:
......
379 379
    .init           = g722_init,
380 380
    .encode         = g722_encode_frame,
381 381
    .long_name      = NULL_IF_CONFIG_SMALL("G.722 ADPCM"),
382
    .sample_fmts    = (enum SampleFormat[]){SAMPLE_FMT_S16,SAMPLE_FMT_NONE},
382
    .sample_fmts    = (enum AVSampleFormat[]){AV_SAMPLE_FMT_S16,AV_SAMPLE_FMT_NONE},
383 383
};
384 384
#endif
385 385

  

Also available in: Unified diff