static int adpcm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
const AVFrame *frame, int *got_packet_ptr)
{
- int n, i, st, pkt_size, ret;
+ int n, i, ch, st, pkt_size, ret;
const int16_t *samples;
uint8_t *dst;
ADPCMEncodeContext *c = avctx->priv_data;
switch(avctx->codec->id) {
case AV_CODEC_ID_ADPCM_IMA_WAV:
{
- int blocks, j, ch;
+ int blocks, j;
blocks = (frame->nb_samples - 1) / 8;
}
case AV_CODEC_ID_ADPCM_IMA_QT:
{
- int ch;
PutBitContext pb;
init_put_bits(&pb, dst, pkt_size * 8);