Revision 5d6e4c16 libavcodec/roqaudioenc.c

View differences:

libavcodec/roqaudioenc.c
49 49
        av_log(avctx, AV_LOG_ERROR, "Audio must be 22050 Hz\n");
50 50
        return -1;
51 51
    }
52
    if (avctx->sample_fmt != SAMPLE_FMT_S16) {
52
    if (avctx->sample_fmt != AV_SAMPLE_FMT_S16) {
53 53
        av_log(avctx, AV_LOG_ERROR, "Audio must be signed 16-bit\n");
54 54
        return -1;
55 55
    }
......
162 162
    roq_dpcm_encode_frame,
163 163
    roq_dpcm_encode_close,
164 164
    NULL,
165
    .sample_fmts = (const enum SampleFormat[]){SAMPLE_FMT_S16,SAMPLE_FMT_NONE},
165
    .sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_S16,AV_SAMPLE_FMT_NONE},
166 166
    .long_name = NULL_IF_CONFIG_SMALL("id RoQ DPCM"),
167 167
};

Also available in: Unified diff