Revision 89e7e640

View differences:

libavcodec/libopencore-amr.c
234 234
#include <opencore-amrwb/if_rom.h>
235 235

  
236 236
typedef struct AMRWBContext {
237
    int    frameCount;
238 237
    void  *state;
239 238
} AMRWBContext;
240 239

  
......
242 241
{
243 242
    AMRWBContext *s = avctx->priv_data;
244 243

  
245
    s->frameCount = 0;
246 244
    s->state      = D_IF_init();
247 245

  
248 246
    amr_decode_fix_avctx(avctx);
......
278 276
        return AVERROR_INVALIDDATA;
279 277
    }
280 278

  
281
    s->frameCount++;
282 279
    D_IF_decode(s->state, buf, data, _good_frame);
283 280
    *data_size = 320 * 2;
284 281
    return packet_size;

Also available in: Unified diff