int samples, total_samples, total_bytes,i;
int samples, total_samples, total_bytes;
static int oggvorbis_decode_frame(AVCodecContext *avccontext,                        void *data, int *data_size,                        uint8_t *buf, int buf_size){    OggVorbisContext *context = avccontext->priv_data ;    float **pcm ;    ogg_packet *op= &context->op;        int samples, total_samples, total_bytes,i;     if(!buf_size){    //FIXME flush        return 0;    }        op->packet = buf;    op->bytes  = buf_size;//    av_log(avccontext, AV_LOG_DEBUG, "%d %d %d %lld %lld %d %d\n", op->bytes, op->b_o_s, op->e_o_s, op->granulepos, op->packetno, buf_size, context->vi.rate);    /*    for(i=0; i<op->bytes; i++)      av_log(avccontext, AV_LOG_DEBUG, "%02X ", op->packet[i]);    av_log(avccontext, AV_LOG_DEBUG, "\n");*/    if(vorbis_synthesis(&context->vb, op) == 0)	vorbis_synthesis_blockin(&context->vd, &context->vb) ;        total_samples = 0 ;    total_bytes = 0 ;    while((samples = vorbis_synthesis_pcmout(&context->vd, &pcm)) > 0) {	conv(samples, pcm, (char*)data + total_bytes, context->vi.channels) ;	total_bytes += samples * 2 * context->vi.channels ;	total_samples += samples ;        vorbis_synthesis_read(&context->vd, samples) ;    }    *data_size = total_bytes ;       return buf_size ;}