Revision 94994d8d

View differences:

libavcodec/g729dec.c
97 97
   return (0x6996966996696996ULL >> (value >> 2)) & 1;
98 98
}
99 99

  
100
static av_cold int decoder_init(AVCodecContext * avctx)
101
{
100 102
    if (avctx->channels != 1) {
101 103
        av_log(avctx, AV_LOG_ERROR, "Only mono sound is supported (requested channels: %d).\n", avctx->channels);
102 104
        return AVERROR_NOFMT;
103 105
    }
104 106

  
107
    /* Both 8kbit/s and 6.4kbit/s modes uses two subframes per frame. */
108
    avctx->frame_size = SUBFRAME_SIZE << 1;
109

  
110
    return 0;
111
}
112

  
105 113
        ff_acelp_weighted_vector_sum(fc + pitch_delay_int[i],
106 114
                                     fc + pitch_delay_int[i],
107 115
                                     fc, 1 << 14,

Also available in: Unified diff