/* returns the number of bytes consumed for building the current frame  */
static int get_consumed_bytes(MpegEncContext *s, int buf_size)
/* returns the number of bytes consumed for building the current frame  */
static int get_consumed_bytes(MpegEncContext *s, int buf_size)
{
        return buf_size;
    }else if(s->flags&CODEC_FLAG_TRUNCATED){
        pos -= s->parse_context.last_index;
        if(pos<0) pos=0;
        return pos;
    }else{
        if(pos==0) pos=1;
        if(pos+10>buf_size) pos=buf_size;
        return pos;
    }
}