Revision 900a129f libavcodec/libvo-amrwbenc.c

View differences:

libavcodec/libvo-amrwbenc.c
65 65

  
66 66
    if (avctx->sample_rate != 16000) {
67 67
        av_log(avctx, AV_LOG_ERROR, "Only 16000Hz sample rate supported\n");
68
        return -1;
68
        return AVERROR(ENOSYS);
69 69
    }
70 70

  
71 71
    if (avctx->channels != 1) {
72 72
        av_log(avctx, AV_LOG_ERROR, "Only mono supported\n");
73
        return -1;
73
        return AVERROR(ENOSYS);
74 74
    }
75 75

  
76 76
    if ((s->mode = getWBBitrateMode(avctx->bit_rate)) < 0) {
77 77
        av_log(avctx, AV_LOG_ERROR, wb_bitrate_unsupported);
78
        return -1;
78
        return AVERROR(ENOSYS);
79 79
    }
80 80

  
81 81
    avctx->frame_size  = 320;
......
105 105

  
106 106
    if ((s->mode = getWBBitrateMode(avctx->bit_rate)) < 0) {
107 107
        av_log(avctx, AV_LOG_ERROR, wb_bitrate_unsupported);
108
        return -1;
108
        return AVERROR(ENOSYS);
109 109
    }
110 110
    size = E_IF_encode(s->state, s->mode, data, frame, s->allow_dtx);
111 111
    return size;

Also available in: Unified diff